-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
67 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
$header = <<<EOF | ||
This file is part of tomkyle/find-run-test | ||
EOF; | ||
|
||
$finder = PhpCsFixer\Finder::create() | ||
->in([ | ||
__DIR__ . '/src', | ||
__DIR__ . '/tests' | ||
]); | ||
|
||
return (new PhpCsFixer\Config())->setRules([ | ||
'@PER-CS' => true, | ||
|
||
'header_comment' => [ | ||
'comment_type' => 'PHPDoc', | ||
'header' => $header, | ||
'location' => 'after_open', | ||
'separate' => 'both', | ||
] | ||
])->setFinder($finder); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
<?php | ||
|
||
/** | ||
* This file is part of tomkyle/find-run-test | ||
*/ | ||
|
||
namespace tomkyle\FindRunTest; | ||
|
||
interface ConfigurableTestRunnerInterface extends TestRunnerInterface | ||
{ | ||
public function setCommand(string $cmd) : self; | ||
public function setCommand(string $cmd): self; | ||
|
||
public function setConfig(string $config) : self; | ||
public function setConfig(string $config): self; | ||
|
||
public function setTestsDirectory(string $dir) : self; | ||
public function setTestsDirectory(string $dir): self; | ||
|
||
public function useColors(bool $colors = null) : self|bool; | ||
public function useColors(bool $colors = null): self|bool; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
<?php | ||
|
||
/** | ||
* This file is part of tomkyle/find-run-test | ||
*/ | ||
|
||
namespace tomkyle\FindRunTest; | ||
|
||
interface TestRunnerInterface | ||
{ | ||
public function __invoke(string $src_file) : int; | ||
public function __invoke(string $src_file): int; | ||
|
||
public function runTest(string $unit_test) : self; | ||
public function runTest(string $unit_test): self; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,11 @@ | ||
<?php | ||
|
||
/** | ||
* PHP Slim4 Web App Boilerplate (https://github.com/tomkyle/webapp-boilerplate) | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* This file is part of tomkyle/find-run-test | ||
*/ | ||
|
||
$root_path = dirname(__DIR__); | ||
$autoloader = $root_path . '/vendor/autoload.php'; | ||
if (!is_readable($autoloader)) { | ||
die(sprintf("\nMissing Composer's Autoloader '%s'; Install Composer dependencies first.\n\n", $autoloader)); | ||
} | ||
|