public function ResponseTest::testSetStatusCode in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/Tests/ResponseTest.php \Symfony\Component\HttpFoundation\Tests\ResponseTest::testSetStatusCode()
@dataProvider getStatusCodeFixtures
File
- vendor/
symfony/ http-foundation/ Tests/ ResponseTest.php, line 675
Class
Namespace
Symfony\Component\HttpFoundation\TestsCode
public function testSetStatusCode($code, $text, $expectedText) {
$response = new Response();
$response
->setStatusCode($code, $text);
$statusText = new \ReflectionProperty($response, 'statusText');
$statusText
->setAccessible(true);
$this
->assertEquals($expectedText, $statusText
->getValue($response));
}