コード例 #1
0
ファイル: LocalTest.php プロジェクト: mychaelstyle/php-utils
 /**
  * Tears down the fixture, for example, closes a network connection.
  * This method is called after a test is executed.
  */
 protected function tearDown()
 {
     $fpath = DIR_WORK . '/' . $this->uri_example;
     if (file_exists($fpath)) {
         unlink($fpath);
     }
     parent::tearDown();
 }
コード例 #2
0
ファイル: FileTest.php プロジェクト: mychaelstyle/php-utils
 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  */
 public function setUp()
 {
     parent::setUp();
     $this->dsn = 'Local://' . DIR_WORK;
     $this->options = array('permission' => 0666);
     $this->uri = 'tmp.txt';
     $this->storage = new \mychaelstyle\Storage($this->dsn);
     $this->object = $this->storage->createFile($this->uri, $this->options);
 }
コード例 #3
0
ファイル: StringTest.php プロジェクト: mychaelstyle/php-utils
 /**
  * Tears down the fixture, for example, closes a network connection.
  * This method is called after a test is executed.
  */
 protected function tearDown()
 {
     parent::tearDown();
 }
コード例 #4
0
 /**
  * Tears down the fixture, for example, closes a network connection.
  * This method is called after a test is executed.
  */
 public function tearDown()
 {
     parent::tearDown();
 }
コード例 #5
0
ファイル: FileTest.php プロジェクト: mychaelstyle/php-utils
 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  */
 protected function setUp()
 {
     parent::setUp();
     $this->object = new File();
     $this->example_text = file_get_contents($this->org_example);
 }