Skip to content
This repository has been archived by the owner on Aug 20, 2018. It is now read-only.

Commit

Permalink
Remove Scaffold
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtnzlml committed Oct 13, 2017
1 parent bfdb9e0 commit 17d96f1
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 533 deletions.
4 changes: 0 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ before_script:

script:
- src/run-tests --bootstrap tests/bootstrap.php
# - php tests/Scaffold/GenerateStructure.php
# - cp tests/FakeBootstrapForScaffold.php tests/_temp/scaffold/bootstrap.php
# - php tests/_temp/scaffold/PresenterPresenter.phpt
# - php tests/_temp/scaffold/ModuleModule/PresenterPresenter.phpt

after_failure:
# Print *.actual content
Expand Down
23 changes: 0 additions & 23 deletions src/Runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,29 +41,6 @@ public function prepareArguments(array $args, $testsDir)
}
}

//Scaffold
if (array_key_exists('--scaffold', $parameters)) {
if (!isset($parameters['--scaffold'])) {
die("Error: specify tests bootstrap for scaffold like this: '--scaffold <bootstrap.php>'\n");
}
$scaffoldBootstrap = $parameters['--scaffold'];
$scaffoldDir = dirname($scaffoldBootstrap);
rtrim($scaffoldDir, DIRECTORY_SEPARATOR);
$outputFolderContent = glob("$scaffoldDir/*");
if (($key = array_search($scaffoldBootstrap, $outputFolderContent)) !== FALSE) {
unset($outputFolderContent[$key]);
}
if (count($outputFolderContent) !== 0) {
die("Error: please use different empty folder - I don't want to destroy your work\n");
}
require $scaffoldBootstrap;
\Nette\Utils\FileSystem::createDir($scaffoldDir . '/_temp');
$scaffold = new \Testbench\Scaffold\TestsGenerator;
$scaffold->generateTests($scaffoldDir);
\Tester\Environment::$checkAssertions = FALSE;
die("Tests generated to the folder '$scaffoldDir'\n");
}

//Specify PHP interpreter to run
if (!array_key_exists('-p', $parameters)) {
$parameters['-p'] = 'php';
Expand Down
231 changes: 0 additions & 231 deletions src/Scaffold/TestsGenerator.php

This file was deleted.

9 changes: 0 additions & 9 deletions tests/FakeBootstrapForScaffold.php

This file was deleted.

12 changes: 0 additions & 12 deletions tests/Scaffold/GenerateStructure.php

This file was deleted.

24 changes: 0 additions & 24 deletions tests/Scaffold/ModulePresenter.expected

This file was deleted.

8 changes: 0 additions & 8 deletions tests/Scaffold/Neon.expected

This file was deleted.

Loading

0 comments on commit 17d96f1

Please sign in to comment.