public static function create(FixtureInterface $fixture) : NoValueForCurrentException { return new NoValueForCurrentException(sprintf('No value for \'<current()>\' found for the fixture "%s".', $fixture->getId())); }
public function testTestCreateException() { $exception = NoValueForCurrentExceptionFactory::create(new DummyFixture('dummy')); $this->assertEquals('No value for \'<current()>\' found for the fixture "dummy".', $exception->getMessage()); $this->assertEquals(0, $exception->getCode()); $this->assertNull($exception->getPrevious()); }