Skip to content

Commit 200f611

Browse files
authored
Merge pull request #6 from dudelburg/master
Ignore classes which implement the TestCase interface
2 parents f704f3c + b429d9c commit 200f611

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

runway

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@ foreach($paths as $path) {
101101
// Get the code
102102
require $commandPath;
103103

104+
// Ignore classes extending TestCase
105+
if(is_subclass_of($command, PHPUnit\Framework\TestCase::class)) {
106+
continue;
107+
}
108+
104109
// Add the command
105110
$consoleApp->add(new $command($config));
106111
}

0 commit comments

Comments
 (0)