Nelmio\Alice\Throwable\Exception\ObjectNotFoundExceptionFactoryTest::testTestCreateNewExceptionWithFactory PHP Method

testTestCreateNewExceptionWithFactory() public method

    public function testTestCreateNewExceptionWithFactory()
    {
        $exception = ObjectNotFoundExceptionFactory::create('foo', 'Dummy');
        $this->assertEquals('Could not find the object "foo" of the class "Dummy".', $exception->getMessage());
        $this->assertEquals(0, $exception->getCode());
        $this->assertNull($exception->getPrevious());
    }
ObjectNotFoundExceptionFactoryTest