From 0d826528e12caf73b5488c1d9b9d5ac738920b25 Mon Sep 17 00:00:00 2001 From: mark_story Date: Mon, 3 Sep 2012 20:13:30 -0400 Subject: [PATCH] Supress fewer errors. PHPUnit raises exceptions on errors, there isn't much point in supressing all these errors. --- .../Test/Case/View/Helper/CacheHelperTest.php | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/lib/Cake/Test/Case/View/Helper/CacheHelperTest.php b/lib/Cake/Test/Case/View/Helper/CacheHelperTest.php index f6e04b6a4b6..35c53425ccb 100644 --- a/lib/Cake/Test/Case/View/Helper/CacheHelperTest.php +++ b/lib/Cake/Test/Case/View/Helper/CacheHelperTest.php @@ -130,7 +130,7 @@ public function testLayoutCacheParsingNoTagsInView() { $this->assertRegExp('/php echo microtime()/', $contents); $this->assertRegExp('/clark kent/', $result); - @unlink($filename); + unlink($filename); } /** @@ -156,7 +156,7 @@ public function testCacheNonLatinCharactersInRoute() { $filename = CACHE . 'views' . DS . 'posts_view_風街ろまん.php'; $this->assertTrue(file_exists($filename)); - @unlink($filename); + unlink($filename); } /** @@ -190,7 +190,7 @@ public function testLayoutCacheParsingWithTagsInView() { $this->assertRegExp('/php echo microtime()/', $contents); $this->assertNotRegExp('/cake:nocache/', $contents); - @unlink($filename); + unlink($filename); } /** @@ -221,7 +221,7 @@ public function testMultipleNoCacheTagsInViewfile() { $contents = file_get_contents($filename); $this->assertNotRegExp('/cake:nocache/', $contents); - @unlink($filename); + unlink($filename); } /** @@ -266,7 +266,7 @@ public function testComplexNoCache() { $filename = CACHE . 'views' . DS . 'cachetest_cache_complex.php'; $this->assertTrue(file_exists($filename)); $contents = file_get_contents($filename); - @unlink($filename); + unlink($filename); $this->assertRegExp('/A\. Layout Before Content/', $contents); $this->assertNotRegExp('/B\. In Plain Element/', $contents); @@ -313,7 +313,7 @@ public function testCacheViewVars() { $this->assertRegExp('/extract\(\$this\-\>viewVars, EXTR_SKIP\);/', $contents); $this->assertRegExp('/php echo \$variable/', $contents); - @unlink($filename); + unlink($filename); } /** @@ -347,7 +347,7 @@ public function testCacheCallbacks() { $this->assertRegExp('/\$controller->startupProcess\(\);/', $contents); - @unlink($filename); + unlink($filename); } /** @@ -377,7 +377,7 @@ public function testCacheActionArray() { $filename = CACHE . 'views' . DS . 'cache_test_cache_parsing.php'; $this->assertTrue(file_exists($filename)); - @unlink($filename); + unlink($filename); } /** @@ -406,7 +406,7 @@ public function testCacheActionArrayCamelCase() { $filename = CACHE . 'views' . DS . 'cachetest_cache_parsing.php'; $this->assertTrue(file_exists($filename)); - @unlink($filename); + unlink($filename); } /** @@ -440,7 +440,7 @@ public function testCacheWithNamedAndPassedArgs() { $filename = CACHE . 'views' . DS . 'cache_test_cache_parsing_1_2_name_mark_ice_cream.php'; $this->assertTrue(file_exists($filename)); - @unlink($filename); + unlink($filename); } /** @@ -472,7 +472,7 @@ public function testCacheWithQueryStringParams() { $filename = CACHE . 'views' . DS . 'cache_test_cache_parsing_q_cakephp.php'; $this->assertTrue(file_exists($filename), 'Missing cache file ' . $filename); - @unlink($filename); + unlink($filename); } /** @@ -506,7 +506,7 @@ public function testCacheWithCustomRoutes() { $filename = CACHE . 'views' . DS . 'en_cache_test_cache_parsing.php'; $this->assertTrue(file_exists($filename)); - @unlink($filename); + unlink($filename); } /** @@ -541,7 +541,7 @@ public function testCacheBaseNameControllerName() { $filename = CACHE . 'views' . DS . 'cache_cachetest_cache_name.php'; $this->assertTrue(file_exists($filename)); - @unlink($filename); + unlink($filename); } /** @@ -645,6 +645,6 @@ public function testCacheEmptySections() { '<\?php \$y = 1; \?>\s*' . '<\?php echo \'cached count is: \' . \$x; \?>\s*' . '@', $contents); - @unlink($filename); + unlink($filename); } }