| 1 | <?php |
||
| 24 | final class HTTPMethodInterfaceTest extends PHPUnit_Framework_TestCase { |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Tests the __constructor() method. |
||
| 28 | * |
||
| 29 | * @return void |
||
| 30 | */ |
||
| 31 | public function testConstructor() { |
||
| 32 | |||
| 33 | $this->assertEquals("DELETE", HTTPMethodInterface::METHOD_DELETE); |
||
| 34 | $this->assertEquals("GET", HTTPMethodInterface::METHOD_GET); |
||
| 35 | $this->assertEquals("HEAD", HTTPMethodInterface::METHOD_HEAD); |
||
| 36 | $this->assertEquals("OPTIONS", HTTPMethodInterface::METHOD_OPTIONS); |
||
| 37 | $this->assertEquals("PATCH", HTTPMethodInterface::METHOD_PATCH); |
||
| 38 | $this->assertEquals("POST", HTTPMethodInterface::METHOD_POST); |
||
| 39 | $this->assertEquals("PUT", HTTPMethodInterface::METHOD_PUT); |
||
| 40 | } |
||
| 41 | |||
| 42 | } |
||
| 43 |