Permalink
Browse files

Supress fewer errors.

PHPUnit raises exceptions on errors, there isn't much point in
supressing all these errors.
  • Loading branch information...
1 parent bacd8af commit 0d826528e12caf73b5488c1d9b9d5ac738920b25 @markstory markstory committed Sep 4, 2012
Showing with 14 additions and 14 deletions.
  1. +14 −14 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);
}
}

0 comments on commit 0d82652

Please sign in to comment.