Example #1
0
function enable()
{
    echo "Going to enable\n";
    fb_enable_code_coverage();
    echo "Enabled\n";
    $z = 3;
}
Example #2
0
function enable()
{
    echo "Going to enable\n";
    fb_enable_code_coverage();
    echo "Enabled\n";
    $GLOBALS['z'] = 3;
}
Example #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) {
     }
 }
Example #4
0
 /**
  * {@inheritdoc}
  */
 public function start()
 {
     fb_enable_code_coverage();
 }
Example #5
0
function test($a)
{
    fb_enable_code_coverage();
    var_dump(array_map(null, $a));
    fb_disable_code_coverage();
}
Example #6
0
 /**
  * Start collection of code coverage information.
  */
 protected function doStart()
 {
     fb_enable_code_coverage();
 }
Example #7
0
function test($t)
{
    fb_enable_code_coverage();
    var_dump($t);
    fb_disable_code_coverage();
}