Blame view

framework/tests/control/NullHTTPRequestTest.php 478 Bytes
385d70ca   Administrator   Importers CRUD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  <?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());
  	}
  	
  }