Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
1 | <?php |
||
5 | public function testProcess() |
||
6 | { |
||
7 | $tocifier = new Tocifier(1234); |
||
8 | $this->assertFalse($tocifier->process()); |
||
9 | |||
10 | $tocifier = new Tocifier(''); |
||
11 | $this->assertFalse($tocifier->process()); |
||
12 | |||
13 | $tocifier = new Tocifier(null); |
||
14 | $this->assertFalse($tocifier->process()); |
||
15 | |||
16 | $tocifier = new Tocifier(array('1234')); |
||
17 | $this->assertFalse($tocifier->process()); |
||
18 | |||
19 | $tocifier = new Tocifier('1234'); |
||
20 | $this->assertTrue($tocifier->process()); |
||
21 | } |
||
22 | |||
44 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.