Completed
Push — master ( 26c37b...25c8ee )
by DAOUDI
02:29
created

RequestMethodMappingTest::testIsValidMethod()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 0
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: sdaoudi
5
 * Date: 17/03/18
6
 * Time: 23:53
7
 */
8
9
namespace SfForward\Tests\Util;
10
11
use PHPUnit\Framework\TestCase;
12
use SfForward\Util\RequestMethodMapping;
13
14
class RequestMethodMappingTest extends TestCase
15
{
16
17
    /**
18
     * isValidMethod test
19
     */
20
    public function testIsValidMethod()
21
    {
22
        $this->assertTrue(RequestMethodMapping::isValidMethod('post'));
23
        $this->assertTrue(RequestMethodMapping::isValidMethod('get'));
24
25
        $this->assertNotTrue(RequestMethodMapping::isValidMethod('put'));
26
        $this->assertNotTrue(RequestMethodMapping::isValidMethod('delete'));
27
        $this->assertNotTrue(RequestMethodMapping::isValidMethod('update'));
28
    }
29
30
}
31