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

RequestMethodMappingTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testIsValidMethod() 0 8 1
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