mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-05 09:11:25 +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()
|
||
|
);
|
||
|
}
|
||
|
|
||
|
}
|