Neos\Flow\Tests\Functional\Mvc\ActionControllerTest::argumentTests PHP Метод

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

Tut Dinge.
public argumentTests ( string $action, mixed $argument, string $expectedResult )
$action string
$argument mixed
$expectedResult string
    public function argumentTests($action, $argument, $expectedResult)
    {
        $arguments = ['argument' => $argument];
        $uri = str_replace('{@action}', strtolower($action), 'http://localhost/test/mvc/actioncontrollertestb/{@action}');
        $response = $this->browser->request($uri, 'POST', $arguments);
        $this->assertTrue(strpos(trim($response->getContent()), (string) $expectedResult) === 0, sprintf('The resulting string did not start with the expected string. Expected: "%s", Actual: "%s"', $expectedResult, $response->getContent()));
    }