Commit 106a078a by Carsten Brandt

use different file names in tests to ensure they can run on HHVM

parent 871ae29c
...@@ -174,7 +174,7 @@ class MessageControllerTest extends TestCase ...@@ -174,7 +174,7 @@ class MessageControllerTest extends TestCase
{ {
$language = 'en'; $language = 'en';
$category = 'test_category'; $category = 'test_category1';
$message = 'test message'; $message = 'test message';
$sourceFileContent = "Yii::t('{$category}', '{$message}')"; $sourceFileContent = "Yii::t('{$category}', '{$message}')";
$this->createSourceFile($sourceFileContent); $this->createSourceFile($sourceFileContent);
...@@ -201,7 +201,7 @@ class MessageControllerTest extends TestCase ...@@ -201,7 +201,7 @@ class MessageControllerTest extends TestCase
{ {
$language = 'en'; $language = 'en';
$category = 'test_category'; $category = 'test_category2';
$message = 'test message'; $message = 'test message';
$sourceFileContent = "Yii::t('{$category}', '{$message}')"; $sourceFileContent = "Yii::t('{$category}', '{$message}')";
$this->createSourceFile($sourceFileContent); $this->createSourceFile($sourceFileContent);
...@@ -231,7 +231,7 @@ class MessageControllerTest extends TestCase ...@@ -231,7 +231,7 @@ class MessageControllerTest extends TestCase
public function testMerge() public function testMerge()
{ {
$language = 'en'; $language = 'en';
$category = 'test_category'; $category = 'test_category3';
$messageFileName = $language . DIRECTORY_SEPARATOR . $category . '.php'; $messageFileName = $language . DIRECTORY_SEPARATOR . $category . '.php';
$existingMessage = 'test existing message'; $existingMessage = 'test existing message';
...@@ -266,7 +266,7 @@ class MessageControllerTest extends TestCase ...@@ -266,7 +266,7 @@ class MessageControllerTest extends TestCase
public function testNoLongerNeedTranslation() public function testNoLongerNeedTranslation()
{ {
$language = 'en'; $language = 'en';
$category = 'test_category'; $category = 'test_category4';
$messageFileName = $language . DIRECTORY_SEPARATOR . $category . '.php'; $messageFileName = $language . DIRECTORY_SEPARATOR . $category . '.php';
$oldMessage = 'test old message'; $oldMessage = 'test old message';
...@@ -299,7 +299,7 @@ class MessageControllerTest extends TestCase ...@@ -299,7 +299,7 @@ class MessageControllerTest extends TestCase
public function testMergeWithContentZero() public function testMergeWithContentZero()
{ {
$language = 'en'; $language = 'en';
$category = 'test_category'; $category = 'test_category5';
$messageFileName = $language . DIRECTORY_SEPARATOR . $category . '.php'; $messageFileName = $language . DIRECTORY_SEPARATOR . $category . '.php';
$zeroMessage = 'test zero message'; $zeroMessage = 'test zero message';
...@@ -336,7 +336,7 @@ class MessageControllerTest extends TestCase ...@@ -336,7 +336,7 @@ class MessageControllerTest extends TestCase
public function testMultiplyTranslators() public function testMultiplyTranslators()
{ {
$language = 'en'; $language = 'en';
$category = 'test_category'; $category = 'test_category6';
$translators = [ $translators = [
'Yii::t', 'Yii::t',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment