Gc\Mvc\Listener\DocumentListenerTest::testOnRouteWithWrongRoute PHP Method

testOnRouteWithWrongRoute() public method

test
public testOnRouteWithWrongRoute ( ) : void
return void
    public function testOnRouteWithWrongRoute()
    {
        $route = Mockery::mock('Zend\\Mvc\\Router\\Http\\RouteMatch');
        $route->shouldReceive('getMatchedRouteName')->once()->andReturn('admin');
        $events = Mockery::mock('Zend\\EventManager\\EventInterface');
        $events->shouldReceive('getRouteMatch')->once()->andReturn($route);
        $this->assertNull($this->object->onRoute($events));
    }