| 1 | <?php |
||
| 16 | class DeprecatedNewReferenceSniffTest extends BaseSniffTest |
||
|
|
|||
| 17 | { |
||
| 18 | const TEST_FILE = 'sniff-examples/deprecated_new_reference.php'; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * testDeprecatedNewReference |
||
| 22 | * |
||
| 23 | * @dataProvider dataDeprecatedNewReference |
||
| 24 | * |
||
| 25 | * @param int $line The line number. |
||
| 26 | * |
||
| 27 | * @return void |
||
| 28 | */ |
||
| 29 | public function testDeprecatedNewReference($line) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Data provider. |
||
| 44 | * |
||
| 45 | * @see testDeprecatedNewReference() |
||
| 46 | * |
||
| 47 | * @return array |
||
| 48 | */ |
||
| 49 | public function dataDeprecatedNewReference() |
||
| 56 | |||
| 57 | /** |
||
| 58 | * testNoReference |
||
| 59 | * |
||
| 60 | * @return void |
||
| 61 | */ |
||
| 62 | public function testNoReference() |
||
| 67 | |||
| 68 | } |
||
| 69 |
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.