tests/CaptainHook/Hook/Message/Action/RegexTest.php
/**
     * Tests RegexCheck::execute
     *
     * @expectedException \Exception
     */
Tests RegexCheck::execute
@expectedException \Exception
Tests RegexCheck :: execute @expectedException \ Exception
public function testExecuteInvalidOption()
    {
        $io     = new NullIO();
        $config = new Config(CH_PATH_FILES . '/captainhook.json');
        $repo   = new Repository($this->repo->getPath());
        $action = new Config\Action('php', '\\SebastianFeldmann\\CaptainHook\\Hook\\Message\\Action\\Rulebook');
        $standard = new Regex();
        $standard->execute($config, $io, $repo, $action);
    }
public function testExecuteInvalidOption ( ) { $ io = new NullIO ( ) ; $ config = new Config ( CH_PATH_FILES . '/captainhook.json' ) ; $ repo = new Repository ( $ this -> repo -> getPath ( ) ) ; $ action = new Config \ Action ( 'php' , '\\SebastianFeldmann\\CaptainHook\\Hook\\Message\\Action\\Rulebook' ) ; $ standard = new Regex ( ) ; $ standard -> execute ( $ config , $ io , $ repo , $ action ) ; }
Tests RegexCheck::execute
 @expectedException \Exception
Tests RegexCheck :: execute @expectedException \ Exception