Example #1
0
 public function testValues()
 {
     $input = Builder::url();
     $input->val('invalid-url');
     $this->assertFalse($input->isValid());
     $input->val('http://valid-url.com');
     $this->assertTrue($input->isValid());
     $this->assertEquals('http://valid-url.com', $input->val());
 }