X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Flibs%2FObjectFactoryTest.php;h=35a7b6028d6f9fc79c97623fe097f89804de037a;hb=be42e09aa866d7def54ead06c91d5dc9c8210ce5;hp=3e0a61ee7c8f268c08f9abc059c56171beb11f81;hpb=b170b4a14a94fb509c4b15ca4c5717c6976a32cc;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/libs/ObjectFactoryTest.php b/tests/phpunit/includes/libs/ObjectFactoryTest.php index 3e0a61ee7c..35a7b6028d 100644 --- a/tests/phpunit/includes/libs/ObjectFactoryTest.php +++ b/tests/phpunit/includes/libs/ObjectFactoryTest.php @@ -27,13 +27,13 @@ class ObjectFactoryTest extends PHPUnit_Framework_TestCase { $obj = ObjectFactory::getObjectFromSpec( [ 'class' => 'ObjectFactoryTestFixture', 'args' => [ - function() { + function () { return 'wrapped'; }, 'unwrapped', ], 'calls' => [ - 'setter' => [ function() { + 'setter' => [ function () { return 'wrapped'; }, ], ], @@ -54,13 +54,13 @@ class ObjectFactoryTest extends PHPUnit_Framework_TestCase { $obj = ObjectFactory::getObjectFromSpec( [ 'class' => 'ObjectFactoryTestFixture', 'args' => [ - function() { + function () { return 'wrapped'; }, 'unwrapped', ], 'calls' => [ - 'setter' => [ function() { + 'setter' => [ function () { return 'wrapped'; }, ], ], @@ -74,11 +74,11 @@ class ObjectFactoryTest extends PHPUnit_Framework_TestCase { $obj = ObjectFactory::getObjectFromSpec( [ 'class' => 'ObjectFactoryTestFixture', - 'args' => [ function() { + 'args' => [ function () { return 'unwrapped'; }, ], 'calls' => [ - 'setter' => [ function() { + 'setter' => [ function () { return 'unwrapped'; }, ], ],