mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Supress fewer errors.
PHPUnit raises exceptions on errors, there isn't much point in supressing all these errors.
This commit is contained in:
parent
bacd8afde3
commit
0d826528e1
1 changed files with 14 additions and 14 deletions
|
@ -130,7 +130,7 @@ class CacheHelperTest extends CakeTestCase {
|
|||
$this->assertRegExp('/php echo microtime()/', $contents);
|
||||
$this->assertRegExp('/clark kent/', $result);
|
||||
|
||||
@unlink($filename);
|
||||
unlink($filename);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -156,7 +156,7 @@ class CacheHelperTest extends CakeTestCase {
|
|||
$filename = CACHE . 'views' . DS . 'posts_view_風街ろまん.php';
|
||||
$this->assertTrue(file_exists($filename));
|
||||
|
||||
@unlink($filename);
|
||||
unlink($filename);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -190,7 +190,7 @@ class CacheHelperTest extends CakeTestCase {
|
|||
$this->assertRegExp('/php echo microtime()/', $contents);
|
||||
$this->assertNotRegExp('/cake:nocache/', $contents);
|
||||
|
||||
@unlink($filename);
|
||||
unlink($filename);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -221,7 +221,7 @@ class CacheHelperTest extends CakeTestCase {
|
|||
|
||||
$contents = file_get_contents($filename);
|
||||
$this->assertNotRegExp('/cake:nocache/', $contents);
|
||||
@unlink($filename);
|
||||
unlink($filename);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -266,7 +266,7 @@ class CacheHelperTest extends CakeTestCase {
|
|||
$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 @@ class CacheHelperTest extends CakeTestCase {
|
|||
$this->assertRegExp('/extract\(\$this\-\>viewVars, EXTR_SKIP\);/', $contents);
|
||||
$this->assertRegExp('/php echo \$variable/', $contents);
|
||||
|
||||
@unlink($filename);
|
||||
unlink($filename);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -347,7 +347,7 @@ class CacheHelperTest extends CakeTestCase {
|
|||
|
||||
$this->assertRegExp('/\$controller->startupProcess\(\);/', $contents);
|
||||
|
||||
@unlink($filename);
|
||||
unlink($filename);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -377,7 +377,7 @@ class CacheHelperTest extends CakeTestCase {
|
|||
|
||||
$filename = CACHE . 'views' . DS . 'cache_test_cache_parsing.php';
|
||||
$this->assertTrue(file_exists($filename));
|
||||
@unlink($filename);
|
||||
unlink($filename);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -406,7 +406,7 @@ class CacheHelperTest extends CakeTestCase {
|
|||
|
||||
$filename = CACHE . 'views' . DS . 'cachetest_cache_parsing.php';
|
||||
$this->assertTrue(file_exists($filename));
|
||||
@unlink($filename);
|
||||
unlink($filename);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -440,7 +440,7 @@ class CacheHelperTest extends CakeTestCase {
|
|||
|
||||
$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 @@ class CacheHelperTest extends CakeTestCase {
|
|||
|
||||
$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 @@ class CacheHelperTest extends CakeTestCase {
|
|||
|
||||
$filename = CACHE . 'views' . DS . 'en_cache_test_cache_parsing.php';
|
||||
$this->assertTrue(file_exists($filename));
|
||||
@unlink($filename);
|
||||
unlink($filename);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -541,7 +541,7 @@ class CacheHelperTest extends CakeTestCase {
|
|||
|
||||
$filename = CACHE . 'views' . DS . 'cache_cachetest_cache_name.php';
|
||||
$this->assertTrue(file_exists($filename));
|
||||
@unlink($filename);
|
||||
unlink($filename);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -645,6 +645,6 @@ class CacheHelperTest extends CakeTestCase {
|
|||
'<\?php \$y = 1; \?>\s*' .
|
||||
'<\?php echo \'cached count is: \' . \$x; \?>\s*' .
|
||||
'@', $contents);
|
||||
@unlink($filename);
|
||||
unlink($filename);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue