public function testUrl() { $input = Input::url(); $this->genericElementTest($input); $this->genericInputTest($input, 'url'); //Values $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()); }