This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function runBare() { | |
self::checkForCatastrophicError(); | |
self::checkForSkipAllTests(); | |
$this->setBaseUp(); | |
try { | |
parent::runBare(); | |
} | |
catch (Exception $e) { | |
// rethrown below | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function benchmark($label, $callback) { | |
$start = microtime(true); | |
$callback(); | |
$time = microtime(true) - $start; | |
echo "Run $label took " . number_format(1000 * $time, 3) . " ms\n"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Hamcrest_Integration_PHPUnit_TestCase extends PHPUnit_Framework_TestCase | |
{ | |
/** | |
* Collects assertions performed by Hamcrest matchers during the test. | |
*/ | |
public function runBare() { | |
Hamcrest_MatcherAssert::resetCount(); | |
try { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Console\Commands; | |
use Illuminate\Console\Command; | |
use Illuminate\Support\Facades\Blade; | |
use Symfony\Component\Finder\Finder; | |
use Throwable; | |
/** |