mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-08-27 13:06:04 +02:00
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@115116 467b73ca-7a2a-4603-9d3b-597d59a354a9
22 lines
462 B
PHP
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());
|
|
}
|
|
|
|
} |