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

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

    public function testRunWithControllerIndexAction()
    {
        $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();
        $output = $this->runApp($app, $request, $response);
        $this->assertEquals($output, 'Working Response From Controller Index Action');
    }