Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
1 | <?php |
||
15 | public function testParser() |
||
16 | { |
||
17 | $delimiter = Config::get('skorry.metadata_delimiter'); |
||
18 | |||
19 | $content = "$delimiter |
||
20 | type: article |
||
21 | title: \"Hello from skorry\" |
||
22 | date: 2011-07-03 5:59 |
||
23 | comments: true |
||
24 | external_url: |
||
25 | tags: |
||
26 | permalink: |
||
27 | $delimiter |
||
28 | Hello"; |
||
29 | $parser = new Parser($content); |
||
30 | $this->assertInstanceOf('Flaviozantut\Parser', $parser); |
||
31 | |||
32 | return $parser; |
||
33 | } |
||
34 | |||
62 |
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.