예제 #1
0
 public function testsValues()
 {
     $input = Builder::time();
     $input->val('38:34:32');
     $this->assertFalse($input->isValid());
     $input->val('18:34:32');
     $this->assertTrue($input->isValid());
     $this->assertEquals('18:34:32', $input->val());
     $input->max('18:34:31');
     $this->assertFalse($input->isValid());
     $input->max('18:34:32');
     $this->assertTrue($input->isValid());
     $input->max('18:34:33');
     $this->assertTrue($input->isValid());
     $input->min('18:34:33');
     $this->assertFalse($input->isValid());
 }