Nelmio\Alice\Throwable\Exception\NoValueForCurrentExceptionFactoryTest::testTestCreateException PHP Method

testTestCreateException() public method

    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());
    }
NoValueForCurrentExceptionFactoryTest