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

php - Hide output during test execution -

javascript - Migrate custom AngularJS filter from 1.2.28 to 1.4.x -

Update Magento products with multiple images -