silverstripe-framework/tests/control/NullHTTPRequestTest.php
2010-12-16 04:06:13 +00:00

22 lines
462 B
PHP

<?php
/**
* @package sapphire
* @subpackage tests
*/
class NullHTTPRequestTest extends SapphireTest {
function testAllHttpVerbsAreFalse() {
$r = new NullHTTPRequest();
$this->assertFalse($r->isGET());
$this->assertFalse($r->isPOST());
$this->assertFalse($r->isPUT());
$this->assertFalse($r->isDELETE());
$this->assertFalse($r->isHEAD());
}
function testGetURL() {
$r = new NullHTTPRequest();
$this->assertEquals('', $r->getURL());
}
}