- /**
- * @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());
- }
-