tests/CaptainHook/Runner/HookTest.php
/**
     * Tests Hook::getActionRunner
     *
     * @expectedException \Exception
     */
Tests Hook::getActionRunner
@expectedException \Exception
Tests Hook :: getActionRunner @expectedException \ Exception
public function testGetRunnerFailure()
    {
        $io           = $this->getIOMock();
        $config       = $this->getConfigMock();
        $repo         = $this->getRepositoryMock();
        $hook   = new Hook($io, $config, $repo);
        $hook->getActionRunner('foo');
    }
public function testGetRunnerFailure ( ) { $ io = $ this -> getIOMock ( ) ; $ config = $ this -> getConfigMock ( ) ; $ repo = $ this -> getRepositoryMock ( ) ; $ hook = new Hook ( $ io , $ config , $ repo ) ; $ hook -> getActionRunner ( 'foo' ) ; }
Tests Hook::getActionRunner
 @expectedException \Exception
Tests Hook :: getActionRunner @expectedException \ Exception