Ejemplo n.º 1
0
function enable()
{
    echo "Going to enable\n";
    fb_enable_code_coverage();
    echo "Enabled\n";
    $z = 3;
}
Ejemplo n.º 2
0
function enable()
{
    echo "Going to enable\n";
    fb_enable_code_coverage();
    echo "Enabled\n";
    $GLOBALS['z'] = 3;
}
Ejemplo n.º 3
0
 /**
  * Starts code coverage.
  */
 public function start()
 {
     //@see bug https://github.com/facebook/hhvm/issues/4752
     try {
         fb_enable_code_coverage();
     } catch (Exception $e) {
     }
 }
Ejemplo n.º 4
0
 /**
  * {@inheritdoc}
  */
 public function start()
 {
     fb_enable_code_coverage();
 }
Ejemplo n.º 5
0
function test($a)
{
    fb_enable_code_coverage();
    var_dump(array_map(null, $a));
    fb_disable_code_coverage();
}
Ejemplo n.º 6
0
 /**
  * Start collection of code coverage information.
  */
 protected function doStart()
 {
     fb_enable_code_coverage();
 }
Ejemplo n.º 7
0
function test($t)
{
    fb_enable_code_coverage();
    var_dump($t);
    fb_disable_code_coverage();
}