OrnoTest\Route\DispatcherTest::testDispatcherHandles404CorrectlyOnStandardStrategies PHP Méthode

testDispatcherHandles404CorrectlyOnStandardStrategies() public méthode

Asserts that a 404 exception is thrown whilst using standard strategies
    public function testDispatcherHandles404CorrectlyOnStandardStrategies()
    {
        $this->setExpectedException('Orno\\Http\\Exception\\NotFoundException', 'Not Found', 0);
        $collection = new Route\RouteCollection();
        $dispatcher = $collection->getDispatcher();
        $response = $dispatcher->dispatch('GET', '/route');
    }