Пример #1
0
 /**
  * test isTime
  * expected false
  */
 public function testIsTimeFailed()
 {
     $value = Zend_Locale_Format::isTime('notime');
     $this->assertFalse($value, "false expected");
 }
Пример #2
0
 /**
  * test isTime
  * expected boolean
  */
 public function testIsTime()
 {
     $this->assertTrue(Zend_Locale_Format::isTime('13:10:55', array('locale' => 'de_AT')), "true expected");
     $this->assertTrue(Zend_Locale_Format::isTime('11:10:55 am', array('locale' => 'ar_EG')), "true expected");
     $this->assertFalse(Zend_Locale_Format::isTime('notime'), "false expected");
 }