Esempio n. 1
0
 /**
  * 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();
 }
Esempio n. 2
0
 function tearDown()
 {
     parent::tearDown();
     /* delete all files in .tmp/test directory */
     $tmp = new T_File_Dir(T_CACHE_DIR . 'test');
     $tmp->delete();
 }
Esempio n. 3
0
 function tearDown()
 {
     parent::tearDown();
     $tmp = new T_File_Dir(T_CACHE_DIR . 'test');
     $tmp->delete();
 }
Esempio n. 4
0
 /**
  * Standard test setup.
  */
 function setUp()
 {
     parent::setUp();
     $this->classname = 'T_Url';
 }
Esempio n. 5
0
 /**
  * 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);
 }
Esempio n. 6
0
 /**
  * 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();
 }