__construct() public method

public __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);
 }
 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;
 }
Exemplo n.º 4
0
 /**
  * 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);
 }
Exemplo n.º 5
0
 /**
  * @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();
     });
 }
Exemplo n.º 6
0
 /**
  * {@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();
 }
Exemplo n.º 8
0
 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';
 }
Exemplo n.º 10
0
 public function __construct()
 {
     parent::__construct();
     $this->model = 'Role';
 }
Exemplo n.º 11
0
 public function __construct()
 {
     parent::__construct();
     $this->username = '******';
     $this->password = '******';
 }
Exemplo n.º 12
0
 /**
  * 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();
 }
Exemplo n.º 14
0
 public function __construct($name = null, array $data = array(), $dataName = '')
 {
     parent::__construct($name, $data, $dataName);
 }
Exemplo n.º 15
0
 public function __construct()
 {
     parent::__construct();
     $this->model = 'Category';
 }
Exemplo n.º 16
0
 public function __construct()
 {
     parent::__construct();
     $this->model = 'Permission';
 }
Exemplo n.º 17
0
 public function __construct()
 {
     $this->faker = Factory::create();
     parent::__construct();
 }
Exemplo n.º 18
0
 function __construct()
 {
     parent::__construct('TestOfPhpUnitAdapter');
 }
Exemplo n.º 19
0
 public function __construct($name = NULL, array $data = array(), $dataName = '')
 {
     $this->model_todo_999 = new Model_Todo(self::USER_999);
     parent::__construct($name, $data, $dataName);
 }
Exemplo n.º 20
0
 public function __construct($name = null, $description = null, $id = null)
 {
     parent::__construct($name, $description, $id);
 }
Exemplo n.º 21
0
 public function __construct()
 {
     parent::__construct();
     $this->model = 'Series';
 }
Exemplo n.º 22
0
 /**
  * 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');
 }
Exemplo n.º 24
0
 public function __construct()
 {
     parent::__construct();
     $role = Role::getInstance();
     $this->defaults = $role->getDefaultConfig();
 }