tests/CaptainHook/Runner/Action/PHPTest.php
/**
     * Tests PHP::executeStatic
     *
     * @expectedException \Exception
     */
Tests PHP::executeStatic
@expectedException \Exception
Tests PHP :: executeStatic @expectedException \ Exception
public function testExecuteStaticClassNotFound()
    {
        $config = $this->getConfigMock();
        $io     = $this->getIOMock();
        $repo   = $this->getRepositoryMock();
        $action = $this->getActionConfigMock();
        $class = '\\Fiz::baz';
        $action->expects($this->once())->method('getAction')->willReturn($class);
        $php = new PHP();
        $php->execute($config, $io, $repo, $action);
    }
public function testExecuteStaticClassNotFound ( ) { $ config = $ this -> getConfigMock ( ) ; $ io = $ this -> getIOMock ( ) ; $ repo = $ this -> getRepositoryMock ( ) ; $ action = $ this -> getActionConfigMock ( ) ; $ class = '\\Fiz::baz' ; $ action -> expects ( $ this -> once ( ) ) -> method ( 'getAction' ) -> willReturn ( $ class ) ; $ php = new PHP ( ) ; $ php -> execute ( $ config , $ io , $ repo , $ action ) ; }
Tests PHP::executeStatic
 @expectedException \Exception
Tests PHP :: executeStatic @expectedException \ Exception