Skip test that always fails on PHP5.3

This commit is contained in:
mark_story 2016-08-29 21:56:30 -04:00
parent d1cfe203c4
commit 2ffde69d5b

View file

@ -1166,6 +1166,10 @@ class CakeTimeTest extends CakeTestCase {
* @return void
*/
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();
$this->assertTrue(isset($return['Asia']['Asia/Bangkok']));
$this->assertEquals('Bangkok', $return['Asia']['Asia/Bangkok']);