Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
64 lines (52 sloc) 1.45 KB
<?php
/**
* Bright Nucleus Jasper Client.
*
* SOAP client to interact with the Jasper Wireless Control Center.
*
* @package BrightNucleus\JasperClient
* @author Alain Schlesser <alain.schlesser@gmail.com>
* @license MIT
* @link https://www.brightnucleus.com/
* @copyright 2017 Alain Schlesser, Bright Nucleus
*/
namespace BrightNucleus\JasperClient;
use VCR\VCR;
define('FIXTURE_DIR', realpath(__DIR__ . '/fixtures'));
if (! defined(JasperClient::CONSTANT_ENVIRONMENT)) {
define(
JasperClient::CONSTANT_ENVIRONMENT,
getenv(JasperClient::CONSTANT_ENVIRONMENT)
);
}
if (! defined(JasperClient::CONSTANT_API_LICENSE_KEY)) {
define(
JasperClient::CONSTANT_API_LICENSE_KEY,
getenv(JasperClient::CONSTANT_API_LICENSE_KEY)
);
}
if (! defined(JasperClient::CONSTANT_USERNAME)) {
define(
JasperClient::CONSTANT_USERNAME,
getenv(JasperClient::CONSTANT_USERNAME)
);
}
if (! defined(JasperClient::CONSTANT_PASSWORD)) {
define(
JasperClient::CONSTANT_PASSWORD,
getenv(JasperClient::CONSTANT_PASSWORD)
);
}
if (! defined('CISCO_JASPER_TEST_ACCOUNT_ID')) {
define(
'CISCO_JASPER_TEST_ACCOUNT_ID',
getenv('CISCO_JASPER_TEST_ACCOUNT_ID')
);
}
// Load Composer autoloader.
$autoloader = dirname(__DIR__) . '/vendor/autoload.php';
if (is_readable($autoloader)) {
include $autoloader;
}
VCR::configure()
->setCassettePath(FIXTURE_DIR . '/vcr');
You can’t perform that action at this time.