X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=vendor%2Fsymfony%2Fdependency-injection%2FTests%2FDefinitionDecoratorTest.php;h=92a212ec416a61f0b0b8635f5d77135eee6f19e7;hb=4e1bfbf98b844da83b18aca92ef00f11a4735806;hp=6be4ad17fd840f696b932ea312fe97b52fec76b0;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/vendor/symfony/dependency-injection/Tests/DefinitionDecoratorTest.php b/vendor/symfony/dependency-injection/Tests/DefinitionDecoratorTest.php index 6be4ad17f..92a212ec4 100644 --- a/vendor/symfony/dependency-injection/Tests/DefinitionDecoratorTest.php +++ b/vendor/symfony/dependency-injection/Tests/DefinitionDecoratorTest.php @@ -14,6 +14,9 @@ namespace Symfony\Component\DependencyInjection\Tests; use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\DefinitionDecorator; +/** + * @group legacy + */ class DefinitionDecoratorTest extends TestCase { public function testConstructor() @@ -50,32 +53,6 @@ class DefinitionDecoratorTest extends TestCase ); } - /** - * @dataProvider provideLegacyPropertyTests - * @group legacy - */ - public function testLegacySetProperty($property, $changeKey) - { - $def = new DefinitionDecorator('foo'); - - $getter = 'get'.ucfirst($property); - $setter = 'set'.ucfirst($property); - - $this->assertNull($def->$getter()); - $this->assertSame($def, $def->$setter('foo')); - $this->assertEquals('foo', $def->$getter()); - $this->assertEquals(array($changeKey => true), $def->getChanges()); - } - - public function provideLegacyPropertyTests() - { - return array( - array('factoryClass', 'factory_class'), - array('factoryMethod', 'factory_method'), - array('factoryService', 'factory_service'), - ); - } - public function testSetPublic() { $def = new DefinitionDecorator('foo'); @@ -101,9 +78,9 @@ class DefinitionDecoratorTest extends TestCase $def = new DefinitionDecorator('foo'); $this->assertFalse($def->isAutowired()); - $this->assertSame($def, $def->setAutowired(false)); - $this->assertFalse($def->isAutowired()); - $this->assertEquals(array('autowire' => true), $def->getChanges()); + $this->assertSame($def, $def->setAutowired(true)); + $this->assertTrue($def->isAutowired()); + $this->assertSame(array('autowired' => true), $def->getChanges()); } public function testSetArgument()