Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
question2answer
Overview
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
outils
question2answer
Commits
ed7e88f5
Commit
ed7e88f5
authored
Aug 08, 2014
by
pupi1985
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added the qa_js tests
parent
944178c2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
UtilStringTest.php
qa-tests/UtilStringTest.php
+19
-0
No files found.
qa-tests/UtilStringTest.php
View file @
ed7e88f5
...
...
@@ -155,4 +155,23 @@ class UtilStringTest extends PHPUnit_Framework_TestCase
$this
->
assertFalse
(
qa_string_matches_one
(
$this
->
strBasic
,
$nonMatches
)
);
}
function
test__qa_js
()
{
$test
=
qa_js
(
'test'
);
$this
->
assertEquals
(
$test
,
"'test'"
);
$test
=
qa_js
(
'test'
,
true
);
$this
->
assertEquals
(
$test
,
"'test'"
);
$test
=
qa_js
(
123
);
$this
->
assertEquals
(
$test
,
123
);
$test
=
qa_js
(
123
,
true
);
$this
->
assertEquals
(
$test
,
"'123'"
);
$test
=
qa_js
(
true
);
$this
->
assertEquals
(
$test
,
'true'
);
$test
=
qa_js
(
true
,
true
);
$this
->
assertEquals
(
$test
,
"'true'"
);
}
}
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