2010-12-16 05:06:13 +01:00
|
|
|
<?php
|
|
|
|
/**
|
2012-04-12 08:02:46 +02:00
|
|
|
* @package framework
|
2010-12-16 05:06:13 +01:00
|
|
|
* @subpackage tests
|
|
|
|
*/
|
|
|
|
class NullHTTPRequestTest extends SapphireTest {
|
|
|
|
|
2012-09-19 12:07:39 +02:00
|
|
|
public function testAllHttpVerbsAreFalse() {
|
2010-12-16 05:06:13 +01:00
|
|
|
$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 08:53:05 +02:00
|
|
|
|
2012-09-19 12:07:39 +02:00
|
|
|
public function testGetURL() {
|
2010-12-16 05:06:13 +01:00
|
|
|
$r = new NullHTTPRequest();
|
|
|
|
$this->assertEquals('', $r->getURL());
|
|
|
|
}
|
2014-08-15 08:53:05 +02:00
|
|
|
|
2012-03-24 04:04:52 +01:00
|
|
|
}
|