/** * Forces the test to only call and fetch XML for the specified plugins, * or exact API methods. * If not called, all default tests will be executed. * * @param array $apiToCall array( 'ExampleAPI', 'Plugin.getData' ) * * @throws Exception * @return void */ protected static function setApiToCall($apiToCall) { if (func_num_args() != 1) { throw new Exception('setApiToCall expects an array'); } if (!is_array($apiToCall)) { $apiToCall = array($apiToCall); } self::$apiToCall = $apiToCall; }