mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
Removing bogus code that doesn't work when tests fail.
This commit is contained in:
parent
f353eb733f
commit
734495d0c7
1 changed files with 5 additions and 10 deletions
|
@ -475,17 +475,12 @@ class FileTest extends CakeTestCase {
|
|||
};
|
||||
|
||||
if ($paintSkip) {
|
||||
$caller = 'test';
|
||||
if (function_exists('debug_backtrace')) {
|
||||
$trace = debug_backtrace();
|
||||
$caller = $trace[1]['function'] . '()';
|
||||
}
|
||||
$assertLine = new SimpleStackTrace(array(__FUNCTION__));
|
||||
$assertLine = $assertLine->traceMethod();
|
||||
$shortPath = substr($tmpFile, strlen(ROOT));
|
||||
$caller = $trace[0]['function'];
|
||||
$shortPath = dirname($tmpFile);
|
||||
|
||||
$message = __d('cake_dev', '[FileTest] Skipping %s because "%s" not writeable!', $caller, $shortPath).$assertLine;
|
||||
$this->_reporter->paintSkip($message);
|
||||
$message = __d('cake_dev', '[FileTest] Skipping %s because "%s" not writeable!', $caller, $shortPath);
|
||||
$this->markTestSkipped($message);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue