Skip to content

Commit

Permalink
Better filter files to try to map.
Browse files Browse the repository at this point in the history
Removing debug code.
  • Loading branch information
mariuswilms committed May 23, 2012
1 parent 52fc3a6 commit 6e347f6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions console/command/Test.php
Expand Up @@ -217,9 +217,8 @@ public function run($path = null) {
if (!$path = $this->_path($path)) {
return false;
}
if (stripos($path, 'test') === false) {
if (!preg_match('/(tests|Test\.php)/', $path)) {
if (!$path = Unit::get($path)) {
var_dump('?');
$this->error('Cannot map path to test path.');
return static::EXIT_NO_TEST;
}
Expand Down

0 comments on commit 6e347f6

Please sign in to comment.