本文整理汇总了PHP中PHPUnit_Framework_TestCase::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP PHPUnit_Framework_TestCase::__construct方法的具体用法?PHP PHPUnit_Framework_TestCase::__construct怎么用?PHP PHPUnit_Framework_TestCase::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PHPUnit_Framework_TestCase
的用法示例。
在下文中一共展示了PHPUnit_Framework_TestCase::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct($name = null, array $data = array(), $dataName = '')
{
$this->_className = $name;
$this->_root = dirname(__FILE__);
date_default_timezone_set('UTC');
parent::__construct($name, $data, $dataName);
}
示例2: __construct
public function __construct()
{
parent::__construct();
require_once __DIR__ . '/../../htdocs/vendor/autoload.php';
$this->dir = __DIR__;
$this->baseUrl = 'http://local.opencaching.de';
}
示例3: __construct
public function __construct($name = null, array $data = array(), $dataName = '')
{
parent::__construct($name, $data, $dataName);
$this->memcached = new \Memcached();
$this->memcached->addServer('localhost', 11211);
$this->handler = new MemcachedHandler('MHT_');
}
示例4: __construct
public function __construct($name = null, array $data = array(), $dataName = '')
{
parent::__construct($name, $data, $dataName);
$this->pdo = new PDO('sqlite::memory:');
BankAccount::createTable($this->pdo);
$this->tester = $this->getDatabaseTester();
}
示例5: __construct
/**
* Constructs a test case with the given name.
*
* Note: use setUp() or setUpBeforeClass() in your test cases.
*
* @param string $name
* @param array $data
* @param string $dataName
*/
final public function __construct($name = null, array $data = array(), $dataName = '') {
parent::__construct($name, $data, $dataName);
$this->setBackupGlobals(false);
$this->setBackupStaticAttributes(false);
$this->setRunTestInSeparateProcess(false);
}
示例6: __construct
public function __construct()
{
parent::__construct();
$this->token = $this->loadToken();
$this->memcacheHost = getenv('MEMCACHE_HOST') ? getenv('MEMCACHE_HOST') : null;
$this->memcachePort = getenv('MEMCACHE_PORT') ? getenv('MEMCACHE_PORT') : null;
}
示例7: setUp
/**
* {@InheritDoc}
*/
public function setUp()
{
parent::__construct();
$baseUrlMock = 'http://mock.ette/api/';
$this->guzzle = $this->getMockForAbstractClass('CanalTP\\FenrirApiClient\\AbstractGuzzle\\Guzzle', [$baseUrlMock]);
$this->fenrirApi = new FenrirApi($this->guzzle);
}
示例8: __construct
public function __construct($name = NULL, array $data = array(), $dataName = '')
{
//$this->setPreserveGlobalState(false);
//$this->setBackupGlobals(false);
self::_initPathVar();
parent::__construct($name, $data, $dataName);
}
示例9: __construct
public function __construct($name = null, array $data = array(), $dataName = '')
{
parent::__construct($name, $data, $dataName);
if (!is_dir($this->tokenDirPath)) {
mkdir($this->tokenDirPath);
}
}
示例10: __construct
public function __construct()
{
global $BOS_TEST_CONFIG;
parent::__construct();
$this->client = new BosClient($BOS_TEST_CONFIG);
$this->logger = LogFactory::getLogger(get_class($this));
}
示例11: __construct
/**
*
* Creates a new Kaltura test Object
* @param string $name
* @param array $data
* @param string $dataName
*/
public function __construct($name = null, array $data = array(), $dataName = '')
{
parent::__construct($name, $data, $dataName);
$class = get_class($this);
if ($name) {
KalturaLog::info("_____________________________________ [{$class}] [{$name}] ___________________________________");
} else {
KalturaLog::info("__________________________________________ [{$class}] ______________________________________");
}
$testFilePath = KAutoloader::getClassFilePath($class);
$this->testFolder = dirname($testFilePath);
$this->inputs = $data;
KalturaLog::info("Loads config file [{$testFilePath}.ini]");
$this->config = new KalturaTestConfig("{$testFilePath}.ini");
$testConfig = $this->config->get('config');
if (!$testConfig) {
$testConfig = new Zend_Config(array('source' => KalturaTestSource::XML), true);
$this->config->config = $testConfig;
$this->config->saveToIniFile();
}
$this->dataSource = $testConfig->source;
$this->outputFolder = $testConfig->outputFolder;
if ($this->outputFolder && !is_dir($this->outputFolder)) {
KalturaLog::info("Creating folder output [{$this->outputFolder}]");
mkdir($this->outputFolder, 777, true);
}
}
示例12: __construct
public function __construct($name = NULL, array $data = array(), $dataName = '')
{
$this->app = MapasCulturais\App::i();
$this->backupGlobals = false;
$this->backupStaticAttributes = false;
parent::__construct($name, $data, $dataName);
}
示例13: __construct
public function __construct()
{
parent::__construct();
$this->file = dirname(__FILE__) . "/assets/name_color.pdf";
$this->complex_file = dirname(__FILE__) . "/assets/complex.pdf";
$this->fields = array('name' => 'John Smith', 'color' => 'Blue');
}
示例14: __construct
public function __construct()
{
parent::__construct();
$this->order = new Routify\Order('/', Routify\Method::GET, function () {
return 'ok, this works';
});
}
示例15: __construct
public function __construct($name = null, array $data = array(), $dataName = '')
{
parent::__construct($name, $data, $dataName);
if ($this->metaDataClassNames !== null) {
$this->setupEntityManager();
}
}