Changeset View
Changeset View
Standalone View
Standalone View
src/unit/engine/phutil/PhutilTestCase.php
| Show First 20 Lines • Show All 484 Lines • ▼ Show 20 Lines | foreach ($methods as $method) { | ||||
| $this->willRunOneTest($name); | $this->willRunOneTest($name); | ||||
| $this->beginCoverage(); | $this->beginCoverage(); | ||||
| $exceptions = array(); | $exceptions = array(); | ||||
| try { | try { | ||||
| call_user_func_array( | call_user_func_array( | ||||
| array($this, $name), | array($this, $name), | ||||
| array()); | array()); | ||||
| $this->passTest(pht('%d assertion(s) passed.', $this->assertions)); | $this->passTest( | ||||
| pht( | |||||
| '%s assertion(s) passed.', | |||||
| new PhutilNumber($this->assertions))); | |||||
| } catch (Exception $ex) { | } catch (Exception $ex) { | ||||
| $exceptions['Execution'] = $ex; | $exceptions['Execution'] = $ex; | ||||
| } | } | ||||
| try { | try { | ||||
| $this->didRunOneTest($name); | $this->didRunOneTest($name); | ||||
| } catch (Exception $ex) { | } catch (Exception $ex) { | ||||
| $exceptions['Shutdown'] = $ex; | $exceptions['Shutdown'] = $ex; | ||||
| ▲ Show 20 Lines • Show All 247 Lines • Show Last 20 Lines | |||||