Completed
Push — master ( 03e47f...db33ac )
by WEBEWEB
06:42 queued 01:35
created

HTTPMethodInterfaceTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 19
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testConstructor() 0 10 1
1
<?php
2
3
/**
4
 * This file is part of the core-library package.
5
 *
6
 * (c) 2017 NdC/WBW
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace WBW\Library\Core\Tests\HTTP;
13
14
use PHPUnit_Framework_TestCase;
15
use WBW\Library\Core\HTTP\HTTPMethodInterface;
16
17
/**
18
 * HTTP method interface test.
19
 *
20
 * @author NdC/WBW <https://github.com/webeweb/>
21
 * @package WBW\Library\Core\Tests\HTTP
22
 * @final
23
 */
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