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

python - jinja2: TemplateSyntaxError: expected token ',', got 'string' -

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

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