/** * Constructor * */ public function __construct($name, $url, $user, $pass) { parent::__construct($name); $this->url = new URL($url); $this->url->setUser($user); $this->url->setPassword($pass); }
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; }
/** * 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; }
/** * 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); }
/** * @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(); }); }
/** * {@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); }); }
/** * 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(); }
public function __construct() { parent::__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'; }
public function __construct() { parent::__construct(); $this->model = 'Role'; }
public function __construct() { parent::__construct(); $this->username = '******'; $this->password = '******'; }
/** * Constructor * * @param string name * @param string uri */ public function __construct($name, $server, $port) { $this->server = $server; $this->port = $port; parent::__construct($name); }
public function __construct() { parent::__construct(); $this->httpHeaderHelper = new HttpHeaderHelper(); }
public function __construct($name = null, array $data = array(), $dataName = '') { parent::__construct($name, $data, $dataName); }
public function __construct() { parent::__construct(); $this->model = 'Category'; }
public function __construct() { parent::__construct(); $this->model = 'Permission'; }
public function __construct() { $this->faker = Factory::create(); parent::__construct(); }
function __construct() { parent::__construct('TestOfPhpUnitAdapter'); }
public function __construct($name = NULL, array $data = array(), $dataName = '') { $this->model_todo_999 = new Model_Todo(self::USER_999); parent::__construct($name, $data, $dataName); }
public function __construct($name = null, $description = null, $id = null) { parent::__construct($name, $description, $id); }
public function __construct() { parent::__construct(); $this->model = 'Series'; }
/** * Set up this test case. Creates connection. * */ public function __construct($name, $url = NULL) { parent::__construct($name); $this->conn = $this->getConnection($url); }
public function __construct() { parent::__construct(); $this->m = Mockery::mock('AlfredNutileInc\\EnvDeployer\\BuildArrayFromEnv'); }
public function __construct() { parent::__construct(); $role = Role::getInstance(); $this->defaults = $role->getDefaultConfig(); }