for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
abstract class FileSystemTest extends PHPUnit_Framework_TestCase
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
{
protected $path = __DIR__ . '/temp';
protected function createTempFolder()
mkdir($this->path, 0700, true);
}
protected function removeTempFolder()
if (file_exists($this->path)) {
array_map('unlink', glob("{$this->path}/*"));
rmdir($this->path);
public function setup()
parent::setup();
$this->createTempFolder();
public function teardown()
parent::teardown();
$this->removeTempFolder();
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.