Skip to content

Commit

Permalink
use the domain cake_developer and cake_error as appropriate
Browse files Browse the repository at this point in the history
  • Loading branch information
AD7six committed Mar 19, 2011
1 parent 2078dbc commit 5725a23
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion lib/Cake/TestSuite/CakeTestCase.php
Expand Up @@ -184,7 +184,7 @@ protected function assertPostConditions() {
*/
function loadFixtures() {
if (empty($this->fixtureManager)) {
throw new Exception(__d('cake', 'No fixture manager to load the test fixture'));
throw new Exception(__d('cake_error', 'No fixture manager to load the test fixture'));
}
$args = func_get_args();
foreach ($args as $class) {
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/TestSuite/CakeTestRunner.php
Expand Up @@ -84,7 +84,7 @@ protected function _getFixtureManager($arguments) {
if (class_exists($arguments['fixtureManager'])) {
return new $arguments['fixtureManager'];
}
throw new RuntimeException(__d('cake', 'Could not find fixture manager %s.', $arguments['fixtureManager']));
throw new RuntimeException(__d('cake_error', 'Could not find fixture manager %s.', $arguments['fixtureManager']));
}
App::uses('AppFixtureManager', 'TestSuite');
if (class_exists('AppFixtureManager')) {
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/TestSuite/Fixture/CakeFixtureManager.php
Expand Up @@ -239,7 +239,7 @@ public function loadSingle($name, $db = null) {
$fixture->truncate($db);
$fixture->insert($db);
} else {
throw new UnexpectedValueException(__d('cake', 'Referenced fixture class %s not found', $name));
throw new UnexpectedValueException(__d('cake_error', 'Referenced fixture class %s not found', $name));
}
}

Expand Down
4 changes: 2 additions & 2 deletions lib/Cake/TestSuite/Reporter/CakeBaseReporter.php
Expand Up @@ -187,7 +187,7 @@ public function startTestSuite(PHPUnit_Framework_TestSuite $suite) {
if (!$this->_headerSent) {
echo $this->paintHeader();
}
echo __d('cake', 'Running %s', $suite->getName()) . "\n";
echo __d('cake_developer', 'Running %s', $suite->getName()) . "\n";
}

/**
Expand Down Expand Up @@ -217,4 +217,4 @@ public function endTest(PHPUnit_Framework_Test $test, $time) {
$this->paintPass($test, $time);
}

}
}
12 changes: 6 additions & 6 deletions lib/Cake/TestSuite/Reporter/CakeHtmlReporter.php
Expand Up @@ -234,8 +234,8 @@ public function paintFail($message, $test) {
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'>" . __d('cake', 'Test case: %s', $testName) . "</div>\n";
echo "<div class='msg'>" . __d('cake', 'Stack trace:') . '<br />' . $trace . "</div>\n";
echo "<div class='msg'>" . __d('cake_developer', 'Test case: %s', $testName) . "</div>\n";
echo "<div class='msg'>" . __d('cake_developer', 'Stack trace:') . '<br />' . $trace . "</div>\n";
echo "</li>\n";
}

Expand Down Expand Up @@ -272,8 +272,8 @@ public function paintException($message, $test) {
echo "<span>" . get_class($message) . "</span>";

echo "<div class='msg'>" . $this->_htmlEntities($message->getMessage()) . "</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 "<div class='msg'>" . __d('cake_developer', 'Test case: %s', $testName) . "</div>\n";
echo "<div class='msg'>" . __d('cake_developer', 'Stack trace:') . '<br />' . $trace . "</div>\n";
echo "</li>\n";
}

Expand Down Expand Up @@ -341,6 +341,6 @@ public function startTestSuite(PHPUnit_Framework_TestSuite $suite) {
if (!$this->_headerSent) {
echo $this->paintHeader();
}
echo '<h2>' . __d('cake', 'Running %s', $suite->getName()) . '</h2>';
echo '<h2>' . __d('cake_developer', 'Running %s', $suite->getName()) . '</h2>';
}
}
}

0 comments on commit 5725a23

Please sign in to comment.