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


PHP TestCase::__construct方法代码示例

本文整理汇总了PHP中TestCase::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP TestCase::__construct方法的具体用法?PHP TestCase::__construct怎么用?PHP TestCase::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在TestCase的用法示例。


在下文中一共展示了TestCase::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 /**
  * Constructor
  *  
  */
 public function __construct($name, $url, $user, $pass)
 {
     parent::__construct($name);
     $this->url = new URL($url);
     $this->url->setUser($user);
     $this->url->setPassword($pass);
 }
开发者ID:Gamepay,项目名称:xp-contrib,代码行数:11,代码来源:JiraClientRest2ProtocolTest.class.php

示例2: __construct

 public function __construct($name = null, $description = null, $id = null)
 {
     parent::__construct($name, $description, $id);
     $this->m = new Mongo("mongodb://" . $this->dbuser . ":" . $this->dbpassword . "@localhost");
     $this->db = $this->m->selectDB('bingo');
     $this->doctrinemodel = \Utility\DoctrineConnect::GetInstance(__DIR__ . '/../../cache')->Doctrinemodel;
 }
开发者ID:JasonOcean,项目名称:iOS_Interest_Group,代码行数:7,代码来源:doctrinetestcase.php

示例3: __construct

 /**
  * Constructor
  *
  * @param   unittest.TestCase base
  * @param   var[] args
  */
 public function __construct($base, $args)
 {
     $uniq = '';
     foreach ((array) $args as $arg) {
         $uniq .= ', ' . xp::stringOf($arg);
     }
     parent::__construct($base->getName() . '(' . substr($uniq, 2) . ')');
     $this->base = $base;
 }
开发者ID:melogamepay,项目名称:xp-framework,代码行数:15,代码来源:TestVariation.class.php

示例4: __construct

 /**
  * MonitorRouterTest constructor.
  *
  * @param   string  $name      Name of the test.
  * @param   array   $data      Data
  * @param   string  $dataName  Data name
  */
 public function __construct($name = null, array $data = array(), $dataName = '')
 {
     JLoader::register('MonitorRouter', JPATH_ROOT . '/components/com_monitor/router.php');
     JLoader::registerPrefix('MonitorTest', JPATH_ROOT . '/components/com_monitor/tests/unit', false, true);
     class_exists('MonitorTestMockMenu');
     class_exists('MonitorTestMockModelProject');
     class_exists('MonitorTestMockModelIssue');
     parent::__construct($name, $data, $dataName);
 }
开发者ID:Harmageddon,项目名称:com_monitor,代码行数:16,代码来源:MonitorRouterTest.php

示例5: __construct

 /**
  * @param Adapter   $adapter
  * @param Extractor $annotationExtractor
  * @param Generator $asserterGenerator
  * @param Manager   $assertionManager
  * @param \Closure  $reflectionClassFactory
  * @param \Closure  $phpExtensionFactory
  * @param Analyzer  $analyzer
  */
 public function __construct(Adapter $adapter = null, Extractor $annotationExtractor = null, Generator $asserterGenerator = null, Manager $assertionManager = null, \Closure $reflectionClassFactory = null, \Closure $phpExtensionFactory = null, Analyzer $analyzer = null)
 {
     parent::__construct($adapter, $annotationExtractor, $asserterGenerator, $assertionManager, $reflectionClassFactory, $phpExtensionFactory, $analyzer);
     $this->getAssertionManager()->setHandler('randomRepository', function ($size = null) {
         return $this->randomRepository($size);
     })->setHandler('emptyRepository', function () {
         return $this->emptyRepository();
     });
 }
开发者ID:cubiche,项目名称:cubiche,代码行数:18,代码来源:RepositoryTestCase.php

示例6: __construct

 /**
  * {@inheritdoc}
  */
 public function __construct(Adapter $adapter = null, Extractor $annotationExtractor = null, Generator $asserterGenerator = null, Manager $assertionManager = null, \Closure $reflectionClassFactory = null)
 {
     parent::__construct($adapter, $annotationExtractor, $asserterGenerator, $assertionManager, $reflectionClassFactory);
     $this->getAssertionManager()->setHandler('randomNativeValue', function () {
         return $this->randomNativeValue();
     })->setHandler('invalidNativeValue', function () {
         return $this->invalidNativeValue();
     })->setHandler('uniqueNativeValue', function () {
         return $this->uniqueNativeValue();
     })->setHandler('fromNative', function ($value) {
         return $this->fromNative($value);
     });
 }
开发者ID:cubiche,项目名称:cubiche,代码行数:16,代码来源:NativeValueObjectTestCase.php

示例7: __construct

 /**
  * See http://stackoverflow.com/
  * questions/26710631/laravel-framework-classes-not-available-in-phpunit-data-provider
  * @param $name
  * @param array       $data
  * @param $dataName
  */
 public function __construct($name = null, array $data = [], $dataName = '')
 {
     parent::__construct($name, $data, $dataName);
     $this->createApplication();
 }
开发者ID:stephenmoore56,项目名称:mooredatabase-laravel,代码行数:12,代码来源:ReportsController2Test.php

示例8: __construct

 public function __construct()
 {
     parent::__construct();
 }
开发者ID:Tjoosten,项目名称:refugee,代码行数:4,代码来源:ProfileTest.php

示例9: __construct

 /**
  * Constructs a test case with the given name.
  *
  * @param string $name
  * @param array  $data
  * @param string $dataName
  */
 public function __construct($name = null, array $data = [], $dataName = '')
 {
     parent::__construct($name, $data, $dataName);
     $this->build_path = __DIR__ . '/Fixtures/Blog';
 }
开发者ID:activecollab,项目名称:databasestructure,代码行数:12,代码来源:BlogBuilderTest.php

示例10: __construct

 public function __construct()
 {
     parent::__construct();
     $this->model = 'Role';
 }
开发者ID:sorora,项目名称:aurp,代码行数:5,代码来源:RoleTest.php

示例11: __construct

 public function __construct()
 {
     parent::__construct();
     $this->username = 'nuwira';
     $this->password = 'nuwira';
 }
开发者ID:nuwira,项目名称:tunggorono,代码行数:6,代码来源:TunggoronoBaseTest.php

示例12: __construct

 /**
  * Constructor
  *
  * @param   string name
  * @param   string uri
  */
 public function __construct($name, $server, $port)
 {
     $this->server = $server;
     $this->port = $port;
     parent::__construct($name);
 }
开发者ID:Gamepay,项目名称:xp-contrib,代码行数:12,代码来源:DictTest.class.php

示例13: __construct

 public function __construct()
 {
     parent::__construct();
     $this->httpHeaderHelper = new HttpHeaderHelper();
 }
开发者ID:Ingenico-ePayments,项目名称:connect-sdk-php,代码行数:5,代码来源:HttpHeaderHelperTest.php

示例14: __construct

 public function __construct($name = null, array $data = array(), $dataName = '')
 {
     parent::__construct($name, $data, $dataName);
 }
开发者ID:kyleing,项目名称:laravel-tool,代码行数:4,代码来源:DBOperatorTest.php

示例15: __construct

 public function __construct()
 {
     $this->faker = Factory::create();
     parent::__construct();
 }
开发者ID:josevh,项目名称:timegrid,代码行数:5,代码来源:UserAgendaControllerTest.php


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