tests/CaptainHook/Config/UtilTest.php
/**
     * Tests Util::validateJsonConfiguration
     *
     * @expectedException \Exception
     */
Tests Util::validateJsonConfiguration
@expectedException \Exception
Tests Util :: validateJsonConfiguration @expectedException \ Exception
public function testActionEmpty()
    {
        Util::validateJsonConfiguration(
            [
                'pre-commit' => [
                    'enabled' => true,
                    'actions' => [
                        ['action'  => '']
                    ]
                ]
            ]
        );
    }
public function testActionEmpty ( ) { Util :: validateJsonConfiguration ( [ 'pre-commit' => [ 'enabled' => true , 'actions' => [ [ 'action' => '' ] ] ] ] ) ; }
Tests Util::validateJsonConfiguration
 @expectedException \Exception
Tests Util :: validateJsonConfiguration @expectedException \ Exception