public static function tearDownAfterClass() { $a = self::$didRun; $b = self::$failures; $testCase = new IndependentTestCase(); $testCase->setUp(); $testCase->assert(array_diff($a, $b))->equals(array_diff($b, $a)); $testCase->tearDown(); }
<?php require_once 'vendor/autoload.php'; use Concise\Core\IndependentTestCase; use Concise\Core\ModuleManager; use Concise\Core\Syntax; use Concise\Module\AbstractModule; // Simulate starting a test case which will cause the default ModuleManager // to load all the modules. $testCase = new IndependentTestCase(); $testCase->setUpBeforeClass(); updateReadme(); function renderSyntax($syntax) { return preg_replace_callback("/\\?:?([a-zA-Z_,]+)?/", function ($m) { if ($m[0] == '?') { return "`mixed`_"; } $types = explode(",", $m[1]); $r = array(); foreach ($types as $type) { $r[] = "`{$type}`_"; } return implode("\\|\\ ", $r); }, $syntax); } function generateMarkdownItem($syntax, $description) { $syntax = renderSyntax($syntax); if (is_null($description)) { return "* {$syntax}\n";