mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Skip test that always fails on PHP5.3
This commit is contained in:
parent
d1cfe203c4
commit
2ffde69d5b
1 changed files with 4 additions and 0 deletions
|
@ -1166,6 +1166,10 @@ class CakeTimeTest extends CakeTestCase {
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function testListTimezones() {
|
public function testListTimezones() {
|
||||||
|
$this->skipIf(
|
||||||
|
version_compare(PHP_VERSION, '5.4.0', '<='),
|
||||||
|
'This test requires newer libicu which is in php5.4+'
|
||||||
|
);
|
||||||
$return = CakeTime::listTimezones();
|
$return = CakeTime::listTimezones();
|
||||||
$this->assertTrue(isset($return['Asia']['Asia/Bangkok']));
|
$this->assertTrue(isset($return['Asia']['Asia/Bangkok']));
|
||||||
$this->assertEquals('Bangkok', $return['Asia']['Asia/Bangkok']);
|
$this->assertEquals('Bangkok', $return['Asia']['Asia/Bangkok']);
|
||||||
|
|
Loading…
Add table
Reference in a new issue