| 1 | <?php |
||
| 14 | abstract class PHPUnit_Stakx_TestCase extends PHPUnit_Framework_TestCase |
||
| 15 | { |
||
| 16 | const FM_OBJ_TEMPLATE = "---\n%s\n---\n\n%s"; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var vfsStreamFile |
||
| 20 | */ |
||
| 21 | protected $dummyFile; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var vfsStreamDirectory |
||
| 25 | */ |
||
| 26 | protected $rootDir; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var Filesystem |
||
| 30 | */ |
||
| 31 | protected $fs; |
||
| 32 | |||
| 33 | public function setUp() |
||
| 39 | |||
| 40 | // |
||
| 41 | // Assert Functions |
||
| 42 | // |
||
| 43 | |||
| 44 | public function assertFileExistsAndContains ($filePath, $needle, $message = '') |
||
| 52 | |||
| 53 | // |
||
| 54 | // Utility Functions |
||
| 55 | // |
||
| 56 | |||
| 57 | protected function createVirtualFile ($frontMatter = array(), $body = "Body Text", $classType) |
||
| 67 | } |
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.