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

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -