| Conditions | 1 |
| Paths | 1 |
| Total Lines | 33 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 29 | public function markdownProvider() |
||
| 30 | { |
||
| 31 | $first = array( |
||
| 32 | 'This is *italic* text', |
||
| 33 | '<p>This is <em>italic</em> text</p>' . PHP_EOL |
||
| 34 | ); |
||
| 35 | |||
| 36 | $second = array(); |
||
| 37 | $second[] = <<<MARKDOWN |
||
| 38 | # A heading |
||
| 39 | |||
| 40 | --- |
||
| 41 | |||
| 42 | * Bullet 1 |
||
| 43 | * Bullet 2 |
||
| 44 | * Bullet 3 |
||
| 45 | MARKDOWN; |
||
| 46 | |||
| 47 | $second[] = <<<EXPECTED |
||
| 48 | <h1>A heading</h1> |
||
| 49 | |||
| 50 | <hr /> |
||
| 51 | |||
| 52 | <ul> |
||
| 53 | <li>Bullet 1</li> |
||
| 54 | <li>Bullet 2</li> |
||
| 55 | <li>Bullet 3</li> |
||
| 56 | </ul> |
||
| 57 | |||
| 58 | EXPECTED; |
||
| 59 | |||
| 60 | return array($first, $second); |
||
| 61 | } |
||
| 62 | } |
||
| 63 |
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.