mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
25 lines
543 B
PHP
25 lines
543 B
PHP
<?php
|
|
|
|
namespace SilverStripe\Control\Tests;
|
|
|
|
use SilverStripe\Dev\SapphireTest;
|
|
use SilverStripe\Control\NullHTTPRequest;
|
|
|
|
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());
|
|
}
|
|
|
|
}
|