Total Complexity | 4 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class StandardTest extends \PHPUnit\Framework\TestCase |
||
13 | { |
||
14 | private $object; |
||
15 | private $session; |
||
16 | |||
17 | |||
18 | protected function setUp() : void |
||
24 | } |
||
25 | |||
26 | |||
27 | protected function tearDown() : void |
||
28 | { |
||
29 | unset( $this->object, $this->session ); |
||
30 | } |
||
31 | |||
32 | |||
33 | public function testTransform() |
||
34 | { |
||
35 | $this->session->set( 'page', 'test' ); |
||
36 | |||
37 | $this->assertEquals( 'test', $this->object->transform( 'page', 'none' ) ); |
||
38 | $this->assertEquals( 'none', $this->object->transform( 'missing', 'none' ) ); |
||
39 | } |
||
40 | |||
41 | |||
42 | public function testTransformNoDefault() |
||
48 | } |
||
49 | } |
||
50 |