| @@ 70-74 (lines=5) @@ | ||
| 67 | } |
|
| 68 | } |
|
| 69 | $fileSize = count($this->files); |
|
| 70 | for ($index = 0; $index < $fileSize; $index++) { |
|
| 71 | if (!is_file($this->files[$index])) { |
|
| 72 | file_put_contents($this->files[$index], ""); |
|
| 73 | } |
|
| 74 | } |
|
| 75 | $config = new \Tight\TightConfig($this->config); |
|
| 76 | $this->app = new \Tight\Tight($config); |
|
| 77 | } |
|
| @@ 82-86 (lines=5) @@ | ||
| 79 | public function tearDown() { |
|
| 80 | $fileSize = count($this->files); |
|
| 81 | $dirSize = count($this->directories); |
|
| 82 | for ($index = 0; $index < $fileSize; $index++) { |
|
| 83 | if (is_file($this->files[$index])) { |
|
| 84 | unlink($this->files[$index]); |
|
| 85 | } |
|
| 86 | } |
|
| 87 | for ($index = 0; $index < $dirSize; $index++) { |
|
| 88 | if (is_dir($this->directories[$index])) { |
|
| 89 | rmdir($this->directories[$index]); |
|