Skip to content

Commit

Permalink
Supress fewer errors.
Browse files Browse the repository at this point in the history
PHPUnit raises exceptions on errors, there isn't much point in
supressing all these errors.
  • Loading branch information
markstory committed Sep 4, 2012
1 parent bacd8af commit 0d82652
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions lib/Cake/Test/Case/View/Helper/CacheHelperTest.php
Expand Up @@ -130,7 +130,7 @@ public function testLayoutCacheParsingNoTagsInView() {
$this->assertRegExp('/php echo microtime()/', $contents);
$this->assertRegExp('/clark kent/', $result);

@unlink($filename);
unlink($filename);
}

/**
Expand All @@ -156,7 +156,7 @@ public function testCacheNonLatinCharactersInRoute() {
$filename = CACHE . 'views' . DS . 'posts_view_風街ろまん.php';
$this->assertTrue(file_exists($filename));

@unlink($filename);
unlink($filename);
}

/**
Expand Down Expand Up @@ -190,7 +190,7 @@ public function testLayoutCacheParsingWithTagsInView() {
$this->assertRegExp('/php echo microtime()/', $contents);
$this->assertNotRegExp('/cake:nocache/', $contents);

@unlink($filename);
unlink($filename);
}

/**
Expand Down Expand Up @@ -221,7 +221,7 @@ public function testMultipleNoCacheTagsInViewfile() {

$contents = file_get_contents($filename);
$this->assertNotRegExp('/cake:nocache/', $contents);
@unlink($filename);
unlink($filename);
}

/**
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
}

/**
Expand Down Expand Up @@ -347,7 +347,7 @@ public function testCacheCallbacks() {

$this->assertRegExp('/\$controller->startupProcess\(\);/', $contents);

@unlink($filename);
unlink($filename);
}

/**
Expand Down Expand Up @@ -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);
}

/**
Expand Down Expand Up @@ -406,7 +406,7 @@ public function testCacheActionArrayCamelCase() {

$filename = CACHE . 'views' . DS . 'cachetest_cache_parsing.php';
$this->assertTrue(file_exists($filename));
@unlink($filename);
unlink($filename);
}

/**
Expand Down Expand Up @@ -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);
}

/**
Expand Down Expand Up @@ -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);
}

/**
Expand Down Expand Up @@ -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);
}

/**
Expand Down Expand Up @@ -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);
}

/**
Expand Down Expand Up @@ -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.