Пример #1
0
 /**
  * Test for Check HTTP
  *
  * @group medium
  *
  * @return void
  */
 public function testCheckHTTP()
 {
     if (!function_exists('curl_init')) {
         $this->markTestSkipped('Missing curl extension!');
     }
     $this->assertTrue($this->object->checkHTTP("http://www.phpmyadmin.net/test/data"));
     $this->assertContains("TEST DATA", $this->object->checkHTTP("http://www.phpmyadmin.net/test/data", true));
     $this->assertFalse($this->object->checkHTTP("http://www.phpmyadmin.net/test/nothing"));
 }