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