tests/CaptainHook/Hook/Message/RuleBookTest.php
/**
     * Tests RuleBook::setRules
     *
     * @expectedException \Exception
     */
Tests RuleBook::setRules
@expectedException \Exception
Tests RuleBook :: setRules @expectedException \ Exception
public function testSetRulesInvalid()
    {
        $msg = new CommitMessage('');
        $v   = new RuleBook();
        $v->setRules([new MsgNotEmpty()]);
        $v->validate($msg);
    }
public function testSetRulesInvalid ( ) { $ msg = new CommitMessage ( '' ) ; $ v = new RuleBook ( ) ; $ v -> setRules ( [ new MsgNotEmpty ( ) ] ) ; $ v -> validate ( $ msg ) ; }
Tests RuleBook::setRules
 @expectedException \Exception
Tests RuleBook :: setRules @expectedException \ Exception