| Total Complexity | 2 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | class ResponseCodesTest extends PHPUnit_Framework_TestCase { |
||
| 19 | /** |
||
| 20 | * Test transform |
||
| 21 | * |
||
| 22 | * @dataProvider status_matrix_provider |
||
| 23 | * |
||
| 24 | * @param $response_code |
||
| 25 | * @param $expected |
||
| 26 | */ |
||
| 27 | public function test_transform( $response_code, $expected ) { |
||
| 28 | $status = Statuses::transform( $response_code ); |
||
| 29 | |||
| 30 | $this->assertEquals( $expected, $status ); |
||
| 31 | } |
||
| 32 | |||
| 33 | public function status_matrix_provider() { |
||
| 40 | ); |
||
| 41 | } |
||
| 43 |