mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
16 lines
375 B
PHP
16 lines
375 B
PHP
|
<?php
|
||
|
/**
|
||
|
* @package sapphire
|
||
|
* @subpackage tests
|
||
|
*/
|
||
|
class HTTPResponseTest extends SapphireTest {
|
||
|
|
||
|
function testStatusDescriptionStripsNewlines() {
|
||
|
$r = new SS_HTTPResponse('my body', 200, "my description \nwith newlines \rand carriage returns");
|
||
|
$this->assertEquals(
|
||
|
"my description with newlines and carriage returns",
|
||
|
$r->getStatusDescription()
|
||
|
);
|
||
|
}
|
||
|
|
||
|
}
|