PPI\FrameworkTest\AppTest::testDispatch PHP Метод

testDispatch() публичный Метод

public testDispatch ( )
    public function testDispatch()
    {
        $app = new AppForDispatchTest(array('environment' => 'test', 'debug' => true, 'rootDir' => __DIR__));
        $this->controllerUnderTest = [new ControllerForAppTest(), 'indexAction'];
        $app = $this->setupAppMocks($app, $this->setupMockRouter(), $this->setupMockControllerResolver());
        $request = HttpRequest::createFromGlobals();
        $response = new HttpResponse();
        $response = $app->dispatch($request, $response);
        $this->assertInstanceOf('\\Symfony\\Component\\HttpFoundation\\Response', $response);
        $this->assertEquals($response->getContent(), 'Working Response From Controller Index Action');
    }