Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleš committed Jun 6, 2017
1 parent dd1a437 commit a43f03a
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 24 deletions.
14 changes: 8 additions & 6 deletions tests/tests/BaseLinksTest.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,14 @@ final class BaseLinksTest extends Tester\TestCase
public function setUp(): void {
parent::setUp();

foreach (scandir(__DIR__) as $find) {
if (!in_array($find, [".", ".."], TRUE)) {
if (is_dir(__DIR__ . "/{$find}")) {
Nette\Utils\FileSystem::delete(__DIR__ . "/{$find}");
}
}
if (is_dir(__DIR__ . "/css")) {
Nette\Utils\FileSystem::delete(__DIR__ . "/css");
}
if (is_dir(__DIR__ . "/js")) {
Nette\Utils\FileSystem::delete(__DIR__ . "/js");
}
if (is_dir(__DIR__ . "/other")) {
Nette\Utils\FileSystem::delete(__DIR__ . "/other");
}

sleep(1);
Expand Down
14 changes: 8 additions & 6 deletions tests/tests/DebugModeTest.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,14 @@ final class DebugModeTest extends Tester\TestCase
public function setUp(): void {
parent::setUp();

foreach (scandir(__DIR__) as $find) {
if (!in_array($find, [".", ".."], TRUE)) {
if (is_dir(__DIR__ . "/{$find}")) {
Nette\Utils\FileSystem::delete(__DIR__ . "/{$find}");
}
}
if (is_dir(__DIR__ . "/css")) {
Nette\Utils\FileSystem::delete(__DIR__ . "/css");
}
if (is_dir(__DIR__ . "/js")) {
Nette\Utils\FileSystem::delete(__DIR__ . "/js");
}
if (is_dir(__DIR__ . "/other")) {
Nette\Utils\FileSystem::delete(__DIR__ . "/other");
}

sleep(1);
Expand Down
14 changes: 8 additions & 6 deletions tests/tests/ExceptionsTest.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,14 @@ final class ExceptionsTest extends Tester\TestCase
public function setUp(): void {
parent::setUp();

foreach (scandir(__DIR__) as $find) {
if (!in_array($find, [".", ".."], TRUE)) {
if (is_dir(__DIR__ . "/{$find}")) {
Nette\Utils\FileSystem::delete(__DIR__ . "/{$find}");
}
}
if (is_dir(__DIR__ . "/css")) {
Nette\Utils\FileSystem::delete(__DIR__ . "/css");
}
if (is_dir(__DIR__ . "/js")) {
Nette\Utils\FileSystem::delete(__DIR__ . "/js");
}
if (is_dir(__DIR__ . "/other")) {
Nette\Utils\FileSystem::delete(__DIR__ . "/other");
}

sleep(1);
Expand Down
14 changes: 8 additions & 6 deletions tests/tests/GettersTest.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,14 @@ final class GettersTest extends Tester\TestCase
public function setUp(): void {
parent::setUp();

foreach (scandir(__DIR__) as $find) {
if (!in_array($find, [".", ".."], TRUE)) {
if (is_dir(__DIR__ . "/{$find}")) {
Nette\Utils\FileSystem::delete(__DIR__ . "/{$find}");
}
}
if (is_dir(__DIR__ . "/css")) {
Nette\Utils\FileSystem::delete(__DIR__ . "/css");
}
if (is_dir(__DIR__ . "/js")) {
Nette\Utils\FileSystem::delete(__DIR__ . "/js");
}
if (is_dir(__DIR__ . "/other")) {
Nette\Utils\FileSystem::delete(__DIR__ . "/other");
}

sleep(1);
Expand Down

0 comments on commit a43f03a

Please sign in to comment.