PHP Classes

File: vendor/phpunit/phpunit/src/Util/PHP/Template/PhptTestCase.tpl

Recommend this page to a friend!
  Classes of Okanlawon Anuoluwapo   Crud HTTP PHP Curl Request   vendor/phpunit/phpunit/src/Util/PHP/Template/PhptTestCase.tpl   Download  
File: vendor/phpunit/phpunit/src/Util/PHP/Template/PhptTestCase.tpl
Role: Example script
Content type: text/plain
Description: Example script
Class: Crud HTTP PHP Curl Request
Send HTTP requests to perform CRUD operations
Author: By
Last change:
Date: 8 months ago
Size: 866 bytes
 

Contents

Class file image Download
<?php
use SebastianBergmann\CodeCoverage\CodeCoverage;

$composerAutoload = {composerAutoload};
$phar = {phar};

ob_start();

$GLOBALS['__PHPUNIT_ISOLATION_BLACKLIST'][] = '{job}';

if (
$composerAutoload) {
    require_once
$composerAutoload;
   
define('PHPUNIT_COMPOSER_INSTALL', $composerAutoload);
} else if (
$phar) {
    require
$phar;
}

{
globals}
$coverage = null;

if (isset(
$GLOBALS['__PHPUNIT_BOOTSTRAP'])) {
    require_once
$GLOBALS['__PHPUNIT_BOOTSTRAP'];
}

if (
class_exists('SebastianBergmann\CodeCoverage\CodeCoverage')) {
   
$coverage = new CodeCoverage(null);
   
$coverage->start(__FILE__);
}

register_shutdown_function(function() use ($coverage) {
   
$output = null;
    if (
$coverage) {
       
$output = $coverage->stop();
    }
   
file_put_contents('{coverageFile}', serialize($output));
});

ob_end_clean();

require
'{job}';