Skip to content

Commit

Permalink
fixed Zend\View\Helper\Escape* tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-mabe authored and padraic committed Jul 13, 2012
1 parent d969527 commit f61a0be
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 30 deletions.
20 changes: 10 additions & 10 deletions tests/Zend/View/Helper/EscapeCssTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ public function testAllowsRecursiveEscapingOfArrays()
),
);
$expected = array(
'foo' => '\3C b\3E bar\3C \2F b\3E ',
'foo' => '\3c b\3e bar\3c \2f b\3e ',
'baz' => array(
'\3C em\3E bat\3C \2F em\3E ',
'\3c em\3e bat\3c \2f em\3e ',
'second' => array(
'\3C i\3E third\3C \2F i\3E ',
'\3c i\3e third\3c \2f i\3e ',
),
),
);
Expand All @@ -103,7 +103,7 @@ public function testWillCastObjectsToStringsBeforeEscaping()
$object = new TestAsset\Stringified;
$test = $this->helper->__invoke($object);
$this->assertEquals(
'ZendTest\5C View\5C Helper\5C TestAsset\5C Stringified',
'ZendTest\5c View\5c Helper\5c TestAsset\5c Stringified',
$test
);
}
Expand All @@ -123,11 +123,11 @@ public function testCanRecurseObjectImplementingToArray()
$object->array = $original;

$expected = array(
'foo' => '\3C b\3E bar\3C \2F b\3E ',
'foo' => '\3c b\3e bar\3c \2f b\3e ',
'baz' => array(
'\3C em\3E bat\3C \2F em\3E ',
'\3c em\3e bat\3c \2f em\3e ',
'second' => array(
'\3C i\3E third\3C \2F i\3E ',
'\3c i\3e third\3c \2f i\3e ',
),
),
);
Expand All @@ -152,11 +152,11 @@ public function testCanRecurseObjectProperties()
}

$expected = array(
'foo' => '\3C b\3E bar\3C \2F b\3E ',
'foo' => '\3c b\3e bar\3c \2f b\3e ',
'baz' => array(
'\3C em\3E bat\3C \2F em\3E ',
'\3c em\3e bat\3c \2f em\3e ',
'second' => array(
'\3C i\3E third\3C \2F i\3E ',
'\3c i\3e third\3c \2f i\3e ',
),
),
);
Expand Down
20 changes: 10 additions & 10 deletions tests/Zend/View/Helper/EscapeHtmlAttrTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ public function testAllowsRecursiveEscapingOfArrays()
),
);
$expected = array(
'foo' => '<b>bar</b>',
'foo' => '<b>bar</b>',
'baz' => array(
'<em>bat</em>',
'<em>bat</em>',
'second' => array(
'<i>third</i>',
'<i>third</i>',
),
),
);
Expand All @@ -103,7 +103,7 @@ public function testWillCastObjectsToStringsBeforeEscaping()
$object = new TestAsset\Stringified;
$test = $this->helper->__invoke($object);
$this->assertEquals(
'ZendTest\View\Helper\TestAsset\Stringified',
'ZendTest\View\Helper\TestAsset\Stringified',
$test
);
}
Expand All @@ -123,11 +123,11 @@ public function testCanRecurseObjectImplementingToArray()
$object->array = $original;

$expected = array(
'foo' => '<b>bar</b>',
'foo' => '<b>bar</b>',
'baz' => array(
'<em>bat</em>',
'<em>bat</em>',
'second' => array(
'<i>third</i>',
'<i>third</i>',
),
),
);
Expand All @@ -152,11 +152,11 @@ public function testCanRecurseObjectProperties()
}

$expected = array(
'foo' => '<b>bar</b>',
'foo' => '<b>bar</b>',
'baz' => array(
'<em>bat</em>',
'<em>bat</em>',
'second' => array(
'<i>third</i>',
'<i>third</i>',
),
),
);
Expand Down
20 changes: 10 additions & 10 deletions tests/Zend/View/Helper/EscapeJsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ public function testAllowsRecursiveEscapingOfArrays()
),
);
$expected = array(
'foo' => '\x3Cb\x3Ebar\x3C\x2Fb\x3E',
'foo' => '\x3cb\x3ebar\x3c\x2fb\x3e',
'baz' => array(
'\x3Cem\x3Ebat\x3C\x2Fem\x3E',
'\x3cem\x3ebat\x3c\x2fem\x3e',
'second' => array(
'\x3Ci\x3Ethird\x3C\x2Fi\x3E',
'\x3ci\x3ethird\x3c\x2fi\x3e',
),
),
);
Expand All @@ -103,7 +103,7 @@ public function testWillCastObjectsToStringsBeforeEscaping()
$object = new TestAsset\Stringified;
$test = $this->helper->__invoke($object);
$this->assertEquals(
'ZendTest\x5CView\x5CHelper\x5CTestAsset\x5CStringified',
'ZendTest\x5cView\x5cHelper\x5cTestAsset\x5cStringified',
$test
);
}
Expand All @@ -123,11 +123,11 @@ public function testCanRecurseObjectImplementingToArray()
$object->array = $original;

$expected = array(
'foo' => '\x3Cb\x3Ebar\x3C\x2Fb\x3E',
'foo' => '\x3cb\x3ebar\x3c\x2fb\x3e',
'baz' => array(
'\x3Cem\x3Ebat\x3C\x2Fem\x3E',
'\x3cem\x3ebat\x3c\x2fem\x3e',
'second' => array(
'\x3Ci\x3Ethird\x3C\x2Fi\x3E',
'\x3ci\x3ethird\x3c\x2fi\x3e',
),
),
);
Expand All @@ -152,11 +152,11 @@ public function testCanRecurseObjectProperties()
}

$expected = array(
'foo' => '\x3Cb\x3Ebar\x3C\x2Fb\x3E',
'foo' => '\x3cb\x3ebar\x3c\x2fb\x3e',
'baz' => array(
'\x3Cem\x3Ebat\x3C\x2Fem\x3E',
'\x3cem\x3ebat\x3c\x2fem\x3e',
'second' => array(
'\x3Ci\x3Ethird\x3C\x2Fi\x3E',
'\x3ci\x3ethird\x3c\x2fi\x3e',
),
),
);
Expand Down

0 comments on commit f61a0be

Please sign in to comment.