output - How to replace phpunit assertion message? -
how replace assertion error message? if call $this->asserttrue(false, 'message')
, display both string "message" , message stating false not true. how only output message chose? possible?
code-crutch comes mind when faced same problem:
public function asserttrue($condition, $message = '') { if (!$condition) $this->fail($message); }
Comments
Post a Comment