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

Qt4: how to send QString inside a struct via QSharedMemory -

node.js - NodeJS remote terminal to Dropbear OpenWRT-Server -

node.js - On Gitbash - Bower : ENOGIT git is not installed or not in the PATH -