1
0
mirror of https://github.com/silverstripe/silverstripe-framework synced 2024-10-22 12:05:37 +00:00

23 lines
476 B
PHP
Raw Normal View History

<?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());
}
2014-08-15 18:53:05 +12:00
public function testGetURL() {
$r = new NullHTTPRequest();
$this->assertEquals('', $r->getURL());
}
2014-08-15 18:53:05 +12:00
}