Esempio n. 1
0
 public function testJBDumpForWeb()
 {
     if (!class_exists('\\JBZoo\\Utils\\Sys')) {
         throw new Exception('jbzoo/utils required for Tools unit-tests');
     }
     if (Sys::isPhp53() || Sys::isPhp7() || Env::isHHVM()) {
         skip('PHP 5.3.x/7.0/hhvm doen\'t support built-in web-server');
     }
     $uniq = uniqid();
     $result = httpRequest('http://localhost:8889/', array('test' => 'jbdump', 'test-var' => $uniq));
     isSame(200, $result->getCode());
     isContain('#jbdump', $result->getBody());
     isContain('Dump die', $result->getBody());
     isContain($uniq, $result->getBody());
 }