Permalink
Browse files

Better filter files to try to map.

Removing debug code.
  • Loading branch information...
1 parent 52fc3a6 commit 6e347f65c9560a446b954abcb6aa1c7d192672c7 @davidpersson davidpersson committed May 22, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 console/command/Test.php
View
@@ -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;
}

0 comments on commit 6e347f6

Please sign in to comment.