示例#1
0
 public function testsValues()
 {
     $input = Builder::color();
     $input->val('red');
     $this->assertFalse($input->isValid());
     $input->val('11234f');
     $this->assertFalse($input->isValid());
     $input->val('#11234f');
     $this->assertTrue($input->isValid());
     $this->assertEquals('#11234f', $input->val());
 }