Skip to content
Permalink
Browse files

test changes affected by shortecho syntax

  • Loading branch information...
AD7six committed Jan 3, 2014
1 parent 04aad2b commit b93361acd03aee521d78dd635da508b970cb763c
Showing with 4 additions and 4 deletions.
  1. +4 −4 Cake/Test/TestCase/View/Helper/CacheHelperTest.php
@@ -183,8 +183,8 @@ public function testLayoutCacheParsingWithTagsInView() {
$contents = file_get_contents($filename);
$this->assertRegExp('/if \(is_writable\(TMP\)\)\:/', $contents);
$this->assertRegExp('/php echo \$variable/', $contents);
$this->assertRegExp('/php echo microtime()/', $contents);
$this->assertRegExp('/= \$variable/', $contents);
$this->assertRegExp('/= microtime()/', $contents);
$this->assertNotRegExp('/cake:nocache/', $contents);
unlink($filename);
@@ -305,7 +305,7 @@ public function testCacheViewVars() {
$contents = file_get_contents($filename);
$this->assertRegExp('/\$this\-\>viewVars/', $contents);
$this->assertRegExp('/extract\(\$this\-\>viewVars, EXTR_SKIP\);/', $contents);
$this->assertRegExp('/php echo \$variable/', $contents);
$this->assertRegExp('/= \$variable/', $contents);
unlink($filename);
}
@@ -621,7 +621,7 @@ public function testCacheEmptySections() {
'<\?php \$x\+\+; \?>\s*' .
'View Content\s*' .
'<\?php \$y = 1; \?>\s*' .
'<\?php echo \'cached count is: \' . \$x; \?>\s*' .
'<\?= \'cached count is: \' . \$x; \?>\s*' .
'@', $contents);
unlink($filename);
}

0 comments on commit b93361a

Please sign in to comment.
You can’t perform that action at this time.