Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
webbasics
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
webbasics
Commits
09845b1b
Commit
09845b1b
authored
Jul 15, 2012
by
Taddeus Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replaced '\r\n' with '\n' in HTML comparison unit tests.
parent
56fc98a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
tests/test_template.php
tests/test_template.php
+9
-9
No files found.
tests/test_template.php
View file @
09845b1b
...
...
@@ -95,17 +95,9 @@ class TemplateTest extends PHPUnit_Framework_TestCase {
return
$rp
->
getValue
(
$object
);
}
function
test_parse_blocks_simple
()
{
$root_block
=
$this
->
get_property
(
$this
->
tpl
,
'root_block'
);
$this
->
assert_is_block_node
(
$root_block
,
null
,
1
);
list
(
$child
)
=
$root_block
->
get_children
();
$this
->
assert_is_html_node
(
$child
,
'test'
);
}
function
assert_is_html_node
(
$node
,
$content
)
{
$this
->
assertEquals
(
'html'
,
$node
->
get_name
());
$this
->
assertEquals
(
$content
,
$node
->
get
(
'content'
));
$this
->
assertEquals
(
$content
,
str_replace
(
"
\r\n
"
,
"
\n
"
,
$node
->
get
(
'content'
)
));
$this
->
assertEquals
(
array
(),
$node
->
get_children
());
}
...
...
@@ -122,6 +114,14 @@ class TemplateTest extends PHPUnit_Framework_TestCase {
$this
->
assertEquals
(
array
(),
$node
->
get_children
());
}
function
test_parse_blocks_simple
()
{
$root_block
=
$this
->
get_property
(
$this
->
tpl
,
'root_block'
);
$this
->
assert_is_block_node
(
$root_block
,
null
,
1
);
list
(
$child
)
=
$root_block
->
get_children
();
$this
->
assert_is_html_node
(
$child
,
'test'
);
}
/**
* @depends test_parse_blocks_simple
*/
...
...
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