X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fsymfony%2Fdependency-injection%2FTests%2FDefinitionTest.php;h=1e385da5477ab9a8a30601127a00fc5828fc9035;hp=5dd0020208704cac917e3ad9a02b4f6d04d29d39;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/vendor/symfony/dependency-injection/Tests/DefinitionTest.php b/vendor/symfony/dependency-injection/Tests/DefinitionTest.php index 5dd002020..1e385da54 100644 --- a/vendor/symfony/dependency-injection/Tests/DefinitionTest.php +++ b/vendor/symfony/dependency-injection/Tests/DefinitionTest.php @@ -13,7 +13,6 @@ namespace Symfony\Component\DependencyInjection\Tests; use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\Definition; -use Symfony\Component\DependencyInjection\ContainerInterface; class DefinitionTest extends TestCase { @@ -125,29 +124,6 @@ class DefinitionTest extends TestCase $this->assertFalse($def->isShared(), '->isShared() returns false if the instance must not be shared'); } - /** - * @group legacy - */ - public function testPrototypeScopedDefinitionAreNotShared() - { - $def = new Definition('stdClass'); - $def->setScope(ContainerInterface::SCOPE_PROTOTYPE); - - $this->assertFalse($def->isShared()); - $this->assertEquals(ContainerInterface::SCOPE_PROTOTYPE, $def->getScope()); - } - - /** - * @group legacy - */ - public function testSetGetScope() - { - $def = new Definition('stdClass'); - $this->assertEquals('container', $def->getScope()); - $this->assertSame($def, $def->setScope('foo')); - $this->assertEquals('foo', $def->getScope()); - } - public function testSetIsPublic() { $def = new Definition('stdClass'); @@ -164,17 +140,6 @@ class DefinitionTest extends TestCase $this->assertTrue($def->isSynthetic(), '->isSynthetic() returns true if the service is synthetic.'); } - /** - * @group legacy - */ - public function testLegacySetIsSynchronized() - { - $def = new Definition('stdClass'); - $this->assertFalse($def->isSynchronized(), '->isSynchronized() returns false by default'); - $this->assertSame($def, $def->setSynchronized(true), '->setSynchronized() implements a fluent interface'); - $this->assertTrue($def->isSynchronized(), '->isSynchronized() returns true if the service is synchronized.'); - } - public function testSetIsLazy() { $def = new Definition('stdClass');