public get ( Nelmio\Alice\FixtureIdInterface $fixture ) : Nelmio\Alice\ObjectInterface | ||
$fixture | Nelmio\Alice\FixtureIdInterface | |
리턴 | Nelmio\Alice\ObjectInterface |
/** * @expectedException \Nelmio\Alice\Throwable\Exception\ObjectNotFoundException * @expectedExceptionMessage Could not find the object "foo" of the class "Dummy". */ public function testThrowsExceptionWhenTryingToGetInexistingObject() { $bag = new ObjectBag(); $bag->get($this->createFixture('foo', 'Dummy')); }