/** * Standard test setup. */ function setUp() { parent::setUp(); $this->classname = 'T_Response'; $this->response = new T_Response(); $this->filter = array(); $this->filter[] = new T_Test_Response_FilterStub(); $this->filter[] = new T_Test_Response_FilterStub(); }
function tearDown() { parent::tearDown(); /* delete all files in .tmp/test directory */ $tmp = new T_File_Dir(T_CACHE_DIR . 'test'); $tmp->delete(); }
function tearDown() { parent::tearDown(); $tmp = new T_File_Dir(T_CACHE_DIR . 'test'); $tmp->delete(); }
/** * Standard test setup. */ function setUp() { parent::setUp(); $this->classname = 'T_Url'; }
/** * Sets the factory. * * @param T_Unit_Factory $factory * @return T_Unit_Case fluent */ function setFactory($factory) { foreach ($this->children as $child) { $child->setFactory($factory); } return parent::setFactory($factory); }
/** * Remove test files and directories. */ function tearDown() { parent::tearDown(); /* delete all files in tmp directory */ $tmp = new T_File_Dir(T_CACHE_DIR . 'test'); $tmp->delete(); /* clear file stat cache */ clearstatcache(); }