Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
106a078a
Commit
106a078a
authored
Jun 16, 2014
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use different file names in tests to ensure they can run on HHVM
parent
871ae29c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
MessageControllerTest.php
...t/framework/console/controllers/MessageControllerTest.php
+6
-6
No files found.
tests/unit/framework/console/controllers/MessageControllerTest.php
View file @
106a078a
...
@@ -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_category
1
'
;
$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_category
2
'
;
$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_category
3
'
;
$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_category
4
'
;
$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_category
5
'
;
$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_category
6
'
;
$translators
=
[
$translators
=
[
'Yii::t'
,
'Yii::t'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment