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) {
|
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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue