Removing bogus code that doesn't work when tests fail.

This commit is contained in:
Mark Story 2011-06-21 14:20:04 -07:00
parent f353eb733f
commit 734495d0c7

View file

@ -475,17 +475,12 @@ class FileTest extends CakeTestCase {
}; };
if ($paintSkip) { if ($paintSkip) {
$caller = 'test'; $trace = debug_backtrace();
if (function_exists('debug_backtrace')) { $caller = $trace[0]['function'];
$trace = debug_backtrace(); $shortPath = dirname($tmpFile);
$caller = $trace[1]['function'] . '()';
}
$assertLine = new SimpleStackTrace(array(__FUNCTION__));
$assertLine = $assertLine->traceMethod();
$shortPath = substr($tmpFile, strlen(ROOT));
$message = __d('cake_dev', '[FileTest] Skipping %s because "%s" not writeable!', $caller, $shortPath).$assertLine; $message = __d('cake_dev', '[FileTest] Skipping %s because "%s" not writeable!', $caller, $shortPath);
$this->_reporter->paintSkip($message); $this->markTestSkipped($message);
} }
return false; return false;
} }