Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pquery
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
pquery
Commits
85969aca
Commit
85969aca
authored
Dec 07, 2011
by
Taddeus Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added use of 'assertStringEqualsFile' to unit test.
parent
9d52a569
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
test/template.php
test/template.php
+1
-2
No files found.
test/template.php
View file @
85969aca
...
@@ -58,8 +58,7 @@ class pQueryTemplateTest extends PHPUnit_Framework_TestCase {
...
@@ -58,8 +58,7 @@ class pQueryTemplateTest extends PHPUnit_Framework_TestCase {
function
test_open_template_file
()
{
function
test_open_template_file
()
{
$path
=
$this
->
templates_folder
.
$this
->
file
;
$path
=
$this
->
templates_folder
.
$this
->
file
;
$content
=
file_get_contents
(
$path
);
$this
->
assertStringEqualsFile
(
$path
,
$this
->
tpl
->
content
,
'template content was not set correctly'
);
$this
->
assertEquals
(
$content
,
$this
->
tpl
->
content
,
'template content was not set correctly'
);
}
}
/**
/**
...
...
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