Alcaeus\MongoDbAdapter\Tests\TestCase::checkFailPoint PHP Method

checkFailPoint() protected method

protected checkFailPoint ( )
    protected function checkFailPoint()
    {
        $database = $this->getCheckClient()->selectDatabase('test');
        try {
            $database->command(['configureFailPoint' => 1]);
        } catch (\MongoDB\Driver\Exception\Exception $e) {
            /* command not found */
            if ($e->getCode() == 59) {
                $this->markTestSkipped('This test require the mongo daemon to be started with the test flag: --setParameter enableTestCommands=1');
            }
        }
    }