silverstripe-framework/tests/control/NullHTTPRequestTest.php
2014-08-19 09:17:15 +12:00

23 lines
476 B
PHP

<?php
/**
* @package framework
* @subpackage tests
*/
class NullHTTPRequestTest extends SapphireTest {
public 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());
}
public function testGetURL() {
$r = new NullHTTPRequest();
$this->assertEquals('', $r->getURL());
}
}