当前位置: 首页>>代码示例>>PHP>>正文


PHP PHPUnit_Framework_TestCase::__construct方法代码示例

本文整理汇总了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);
 }
开发者ID:hjr3,项目名称:zf2,代码行数:7,代码来源:TestCommonBackend.php

示例2: __construct

 public function __construct()
 {
     parent::__construct();
     require_once __DIR__ . '/../../htdocs/vendor/autoload.php';
     $this->dir = __DIR__;
     $this->baseUrl = 'http://local.opencaching.de';
 }
开发者ID:kratenko,项目名称:oc-server3,代码行数:7,代码来源:AbstractFrontendTest.php

示例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_');
 }
开发者ID:jonafrank,项目名称:memcached-manager,代码行数:7,代码来源:MemcachedHandlerTest.php

示例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();
 }
开发者ID:newsn31,项目名称:StarterTheme,代码行数:7,代码来源:BankAccountCompositeTest.php

示例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);
    }
开发者ID:rwijaya,项目名称:moodle,代码行数:16,代码来源:advanced_testcase.php

示例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;
 }
开发者ID:SaintGrey,项目名称:sheets2,代码行数:7,代码来源:BaseTest.php

示例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);
 }
开发者ID:canaltp,项目名称:fenrir-api-client,代码行数:10,代码来源:AbstractFenrirApiTest.php

示例8: __construct

 public function __construct($name = NULL, array $data = array(), $dataName = '')
 {
     //$this->setPreserveGlobalState(false);
     //$this->setBackupGlobals(false);
     self::_initPathVar();
     parent::__construct($name, $data, $dataName);
 }
开发者ID:OpenBX,项目名称:obx.core,代码行数:7,代码来源:testcase.php

示例9: __construct

 public function __construct($name = null, array $data = array(), $dataName = '')
 {
     parent::__construct($name, $data, $dataName);
     if (!is_dir($this->tokenDirPath)) {
         mkdir($this->tokenDirPath);
     }
 }
开发者ID:gbrousse,项目名称:php-token-manager,代码行数:7,代码来源:TokenManagerTest.php

示例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));
 }
开发者ID:vian007,项目名称:components,代码行数:7,代码来源:BosClientSample.php

示例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);
     }
 }
开发者ID:EfncoPlugins,项目名称:Media-Management-based-on-Kaltura,代码行数:34,代码来源:KalturaTestCaseApiBase.php

示例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);
 }
开发者ID:pedrokoblitz,项目名称:mapa-de-hackers,代码行数:7,代码来源:bootstrap.php

示例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');
 }
开发者ID:etecc,项目名称:pdffill,代码行数:7,代码来源:PDFFillTest.php

示例14: __construct

 public function __construct()
 {
     parent::__construct();
     $this->order = new Routify\Order('/', Routify\Method::GET, function () {
         return 'ok, this works';
     });
 }
开发者ID:SiroDiaz,项目名称:Routify,代码行数:7,代码来源:OrderTest.php

示例15: __construct

 public function __construct($name = null, array $data = array(), $dataName = '')
 {
     parent::__construct($name, $data, $dataName);
     if ($this->metaDataClassNames !== null) {
         $this->setupEntityManager();
     }
 }
开发者ID:pdt256,项目名称:vbscraper,代码行数:7,代码来源:DoctrineTestCase.php


注:本文中的PHPUnit_Framework_TestCase::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。