/** * 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(); }
/** * 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); }
/** * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. */ protected function tearDown() { parent::tearDown(); }
/** * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. */ public function tearDown() { parent::tearDown(); }
/** * 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); }