Exemplo n.º 1
0
<?php

if (!file_exists(__DIR__ . "/../vendor/autoload.php")) {
    die("\n[ERROR] You need to run composer before running the test suite.\n" . "To do so run the following commands:\n" . "    curl -s http://getcomposer.org/installer | php\n" . "    php composer.phar install\n\n");
}
require_once __DIR__ . '/../vendor/autoload.php';
$useCustomInfo = false;
$testConfig = \Symfony\Component\Yaml\Yaml::parse('tests/xmlrpc.yml');
if ($testConfig['endpoint'] && $testConfig['admin_login'] && $testConfig['admin_password'] && $testConfig['guest_login'] && $testConfig['guest_password']) {
    $useCustomInfo = true;
}
if (!$useCustomInfo) {
    \VCR\VCR::configure()->enableLibraryHooks(array('stream_wrapper', 'curl'));
} else {
    VCR\VCR::configure()->enableLibraryHooks(array());
}
Exemplo n.º 2
0
<?php

/**
 * PHP Plutus Client
 *
 * @author    Jacques Marneweck <*****@*****.**>
 * @copyright 2014-2016 Jacques Marneweck.  All rights reserved.
 * @package   Plutus\Client
 */
require_once __DIR__ . '/../vendor/autoload.php';
VCR\VCR::turnOn();