Skip to content

Commit

Permalink
Merge pull request #6 from dudelburg/master
Browse files Browse the repository at this point in the history
Ignore classes which implement the TestCase interface
  • Loading branch information
n0nag0n authored Nov 10, 2024
2 parents f704f3c + b429d9c commit 200f611
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions runway
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ foreach($paths as $path) {
// Get the code
require $commandPath;

// Ignore classes extending TestCase
if(is_subclass_of($command, PHPUnit\Framework\TestCase::class)) {
continue;
}

// Add the command
$consoleApp->add(new $command($config));
}
Expand Down

0 comments on commit 200f611

Please sign in to comment.