コード例 #1
0
ファイル: Response.php プロジェクト: robtuley/knotwerk
 /**
  * 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();
 }
コード例 #2
0
ファイル: Gd.php プロジェクト: robtuley/knotwerk
 function tearDown()
 {
     parent::tearDown();
     /* delete all files in .tmp/test directory */
     $tmp = new T_File_Dir(T_CACHE_DIR . 'test');
     $tmp->delete();
 }
コード例 #3
0
ファイル: View.php プロジェクト: robtuley/knotwerk
 function tearDown()
 {
     parent::tearDown();
     $tmp = new T_File_Dir(T_CACHE_DIR . 'test');
     $tmp->delete();
 }
コード例 #4
0
ファイル: Url.php プロジェクト: robtuley/knotwerk
 /**
  * Standard test setup.
  */
 function setUp()
 {
     parent::setUp();
     $this->classname = 'T_Url';
 }
コード例 #5
0
ファイル: Suite.php プロジェクト: robtuley/knotwerk
 /**
  * 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);
 }
コード例 #6
0
ファイル: Path.php プロジェクト: robtuley/knotwerk
 /**
  * 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();
 }