mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
translation changes in the TestSuite dir
This commit is contained in:
parent
e7f39b456f
commit
26038b13e1
5 changed files with 9 additions and 9 deletions
|
@ -184,7 +184,7 @@ abstract class CakeTestCase extends PHPUnit_Framework_TestCase {
|
|||
*/
|
||||
function loadFixtures() {
|
||||
if (empty($this->fixtureManager)) {
|
||||
throw new Exception(__('No fixture manager to load the test fixture'));
|
||||
throw new Exception(__d('cake', 'No fixture manager to load the test fixture'));
|
||||
}
|
||||
$args = func_get_args();
|
||||
foreach ($args as $class) {
|
||||
|
|
|
@ -84,7 +84,7 @@ class CakeTestRunner extends PHPUnit_TextUI_TestRunner {
|
|||
if (class_exists($arguments['fixtureManager'])) {
|
||||
return new $arguments['fixtureManager'];
|
||||
}
|
||||
throw new RuntimeException(__('Could not find fixture manager %s.', $arguments['fixtureManager']));
|
||||
throw new RuntimeException(__d('cake', 'Could not find fixture manager %s.', $arguments['fixtureManager']));
|
||||
}
|
||||
App::uses('AppFixtureManager', 'TestSuite');
|
||||
if (class_exists('AppFixtureManager')) {
|
||||
|
|
|
@ -239,7 +239,7 @@ class CakeFixtureManager {
|
|||
$fixture->truncate($db);
|
||||
$fixture->insert($db);
|
||||
} else {
|
||||
throw new UnexpectedValueException(__('Referenced fixture class %s not found', $name));
|
||||
throw new UnexpectedValueException(__d('cake', 'Referenced fixture class %s not found', $name));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -187,7 +187,7 @@ class CakeBaseReporter extends PHPUnit_TextUI_ResultPrinter {
|
|||
if (!$this->_headerSent) {
|
||||
echo $this->paintHeader();
|
||||
}
|
||||
echo __('Running %s', $suite->getName()) . "\n";
|
||||
echo __d('cake', 'Running %s', $suite->getName()) . "\n";
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
10
lib/Cake/TestSuite/Reporter/CakeHtmlReporter.php
Executable file → Normal file
10
lib/Cake/TestSuite/Reporter/CakeHtmlReporter.php
Executable file → Normal file
|
@ -234,8 +234,8 @@ class CakeHtmlReporter extends CakeBaseReporter {
|
|||
echo "<li class='fail'>\n";
|
||||
echo "<span>Failed</span>";
|
||||
echo "<div class='msg'><pre>" . $this->_htmlEntities($message->toString()) . "</pre></div>\n";
|
||||
echo "<div class='msg'>" . __('Test case: %s', $testName) . "</div>\n";
|
||||
echo "<div class='msg'>" . __('Stack trace:') . '<br />' . $trace . "</div>\n";
|
||||
echo "<div class='msg'>" . __d('cake', 'Test case: %s', $testName) . "</div>\n";
|
||||
echo "<div class='msg'>" . __d('cake', 'Stack trace:') . '<br />' . $trace . "</div>\n";
|
||||
echo "</li>\n";
|
||||
}
|
||||
|
||||
|
@ -272,8 +272,8 @@ class CakeHtmlReporter extends CakeBaseReporter {
|
|||
echo "<span>" . get_class($message) . "</span>";
|
||||
|
||||
echo "<div class='msg'>" . $this->_htmlEntities($message->getMessage()) . "</div>\n";
|
||||
echo "<div class='msg'>" . __('Test case: %s', $testName) . "</div>\n";
|
||||
echo "<div class='msg'>" . __('Stack trace:') . '<br />' . $trace . "</div>\n";
|
||||
echo "<div class='msg'>" . __d('cake', 'Test case: %s', $testName) . "</div>\n";
|
||||
echo "<div class='msg'>" . __d('cake', 'Stack trace:') . '<br />' . $trace . "</div>\n";
|
||||
echo "</li>\n";
|
||||
}
|
||||
|
||||
|
@ -341,6 +341,6 @@ class CakeHtmlReporter extends CakeBaseReporter {
|
|||
if (!$this->_headerSent) {
|
||||
echo $this->paintHeader();
|
||||
}
|
||||
echo '<h2>' . __('Running %s', $suite->getName()) . '</h2>';
|
||||
echo '<h2>' . __d('cake', 'Running %s', $suite->getName()) . '</h2>';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue