public function testCanCheckIfIsIp() { $this->assertTrue(String::isIp('192.168.1.1')); $this->assertFalse(String::isIp('foobar')); }