Author: Jan Matoušek
Author: Jaroslav Hanslík
Example #1
0
 /**
  * Constructor.
  *
  * @param string $description Test description
  * @param string $server Server hostname
  * @param string $dir Tested directory
  * @param array $options Connection options
  */
 public function __construct($description, $server, $dir = '', array $options = array())
 {
     parent::__construct($description);
     $this->server = (string) $server;
     $this->dir = (string) $dir;
     $this->options = $options;
 }
Example #2
0
File: Redis.php Project: jyxo/php
 /**
  * Constructor.
  *
  * @param string $description Test description
  * @param string $host Server host
  * @param integer $port Port
  * @param integer $database Database index
  */
 public function __construct(string $description, string $host, int $port = 6379, int $database = 0)
 {
     parent::__construct($description);
     $this->host = $host;
     $this->port = $port;
     $this->database = $database;
 }
Example #3
0
 /**
  * Constructor.
  *
  * @param string $description Test description
  * @param string $host Server host
  * @param integer $port Port
  * @param integer $database Database index
  */
 public function __construct($description, $host, $port = 6379, $database = 0)
 {
     parent::__construct($description);
     $this->host = (string) $host;
     $this->port = (int) $port;
     $this->database = (int) $database;
 }
Example #4
0
File: Webdav.php Project: jyxo/php
 /**
  * Constructor.
  *
  * @param string $description Test description
  * @param string $server Server hostname
  * @param string $dir Tested directory
  * @param array $options Connection options
  */
 public function __construct(string $description, string $server, string $dir = '', array $options = [])
 {
     parent::__construct($description);
     $this->server = $server;
     $this->dir = $dir;
     $this->options = $options;
 }
Example #5
0
 /**
  * Constructor.
  *
  * @param string $description Test description
  * @param string $version Required version
  * @param string $extension Optional extension name
  * @param string $comparison Comparison operator for version_compare. >= means "the actual version must be greater or equal to the expected"
  */
 public function __construct($description, $version, $extension = '', $comparison = '=')
 {
     parent::__construct($description);
     $this->version = (string) $version;
     $this->extension = (string) $extension;
     $this->comparison = (string) $comparison;
 }
Example #6
0
File: Smtp.php Project: jyxo/php
 /**
  * Constructor.
  *
  * @param string $description Test description
  * @param string $host Hostname
  * @param string $to Recipient
  * @param string $from Sender
  * @param integer $timeout Timeout
  */
 public function __construct(string $description, string $host, string $to, string $from, int $timeout = 2)
 {
     parent::__construct($description);
     $this->host = $host;
     $this->to = $to;
     $this->from = $from;
     $this->timeout = $timeout;
 }
Example #7
0
File: JsonRpc.php Project: jyxo/php
 /**
  * Constructor.
  *
  * @param string $description Test description
  * @param string $url Server URL
  * @param string $method Tested method
  * @param array $params Method parameters
  * @param integer $timeout Timeout
  */
 public function __construct(string $description, string $url, string $method, array $params, int $timeout = 2)
 {
     parent::__construct($description);
     $this->url = $url;
     $this->method = $method;
     $this->params = $params;
     $this->timeout = $timeout;
 }
Example #8
0
 /**
  * Constructor.
  *
  * @param string $description Test description
  * @param string $host Hostname
  * @param string $to Recipient
  * @param string $from Sender
  * @param integer $timeout Timeout
  */
 public function __construct($description, $host, $to, $from, $timeout = 2)
 {
     parent::__construct($description);
     $this->host = (string) $host;
     $this->to = (string) $to;
     $this->from = (string) $from;
     $this->timeout = (int) $timeout;
 }
Example #9
0
 /**
  * Constructor.
  *
  * @param string $description Test description
  * @param string $url Server URL
  * @param string $method Tested method
  * @param array $params Method parameters
  * @param integer $timeout Timeout
  */
 public function __construct($description, $url, $method, array $params, $timeout = 2)
 {
     parent::__construct($description);
     $this->url = (string) $url;
     $this->method = (string) $method;
     $this->params = $params;
     $this->timeout = (int) $timeout;
 }
Example #10
0
 /**
  * Constructor.
  *
  * @param string $description Test description
  * @param string $host Server hostname
  * @param string $user Username
  * @param string $password Password
  * @param integer $port Port
  * @param boolean $validateCert Validate certificates
  */
 public function __construct($description, $host = 'localhost', $user = '', $password = '', $port = 143, $validateCert = true)
 {
     parent::__construct($description);
     $this->host = (string) $host;
     $this->user = (string) $user;
     $this->password = (string) $password;
     $this->port = (int) $port;
     $this->validateCert = (bool) $validateCert;
 }
Example #11
0
File: Imap.php Project: jyxo/php
 /**
  * Constructor.
  *
  * @param string $description Test description
  * @param string $host Server hostname
  * @param string $user Username
  * @param string $password Password
  * @param integer $port Port
  * @param boolean $validateCert Validate certificates
  */
 public function __construct(string $description, string $host = 'localhost', string $user = '', string $password = '', int $port = 143, bool $validateCert = true)
 {
     parent::__construct($description);
     $this->host = $host;
     $this->user = $user;
     $this->password = $password;
     $this->port = $port;
     $this->validateCert = $validateCert;
 }
Example #12
0
File: Pgsql.php Project: jyxo/php
 /**
  * Constructor.
  *
  * @param string $description Test description
  * @param string $query Tested query
  * @param string $database Database name
  * @param string $host Hostname
  * @param string $user Username
  * @param string $password Password
  * @param integer $port Port
  * @param integer $timeout Timeout
  */
 public function __construct(string $description, string $query, string $database, string $host = 'localhost', string $user = '', string $password = '', int $port = 5432, int $timeout = 2)
 {
     parent::__construct($description);
     $this->query = $query;
     $this->database = $database;
     $this->host = $host;
     $this->user = $user;
     $this->password = $password;
     $this->port = $port;
     $this->timeout = $timeout;
 }
Example #13
0
 /**
  * Constructor.
  *
  * @param string $description Test description
  * @param string $query Tested query
  * @param string $database Database name
  * @param string $host Hostname
  * @param string $user Username
  * @param string $password Password
  * @param integer $port Port
  * @param integer $timeout Timeout
  */
 public function __construct($description, $query, $database, $host = 'localhost', $user = '', $password = '', $port = 3306, $timeout = 2)
 {
     parent::__construct($description);
     $this->query = (string) $query;
     $this->database = (string) $database;
     $this->host = (string) $host;
     $this->user = (string) $user;
     $this->password = (string) $password;
     $this->port = (int) $port;
     $this->timeout = (int) $timeout;
 }
Example #14
0
File: Smtp.php Project: honzap/php
 /**
  * Constructor.
  *
  * @param string $description Test description
  * @param string $host Hostname
  * @param string $to Recipient
  * @param string $from Sender
  * @param integer $timeout Timeout
  */
 public function __construct($description, $host, $to, $from = '', $timeout = 2)
 {
     parent::__construct($description);
     $this->host = (string) $host;
     $this->to = (string) $to;
     $this->from = (string) $from;
     $this->timeout = (int) $timeout;
     // Default sender
     if (empty($this->from)) {
         $this->from = '*****@*****.**';
     }
 }
Example #15
0
 /**
  * Constructor.
  *
  * @param string $description Test description
  * @param string $host Server host
  * @param integer $port Port
  */
 public function __construct($description, $host, $port)
 {
     parent::__construct($description);
     $this->host = (string) $host;
     $this->port = (int) $port;
 }
Example #16
0
 /**
  * Constructor. Gets the testing URL and optional custom tests.
  *
  * @param string $description Test description
  * @param string $url Tested URL
  * @param array $tests Custom tests
  */
 public function __construct($description, $url, array $tests = array())
 {
     parent::__construct($description);
     $this->url = (string) $url;
     $this->tests = $tests;
 }
Example #17
0
 /**
  * Constructor.
  *
  * @param string $description Test description
  * @param array $extensionList List of extensions
  */
 public function __construct($description, array $extensionList)
 {
     parent::__construct($description);
     $this->extensionList = $extensionList;
 }
Example #18
0
 /**
  * Constructor.
  *
  * @param string $description Test description
  * @param string $ip Server address
  * @param integer $port Port
  */
 public function __construct($description, $ip, $port)
 {
     parent::__construct($description);
     $this->ip = (string) $ip;
     $this->port = (int) $port;
 }
Example #19
0
 /**
  * Constructor. Gets the testing URL and optional custom tests.
  *
  * @param string $description Test description
  * @param string $url Tested URL
  * @param array $tests Custom tests
  */
 public function __construct(string $description, string $url, array $tests = [])
 {
     parent::__construct($description);
     $this->url = $url;
     $this->tests = $tests;
 }
Example #20
0
 /**
  * Constructor.
  *
  * @param string $description Test description
  * @param string $host Server host
  * @param integer $port Port
  */
 public function __construct(string $description, string $host, int $port)
 {
     parent::__construct($description);
     $this->host = $host;
     $this->port = $port;
 }
Example #21
0
 /**
  * Constructor.
  *
  * @param string $description Test description
  * @param string $dir Tested directory
  */
 public function __construct(string $description, string $dir)
 {
     parent::__construct($description);
     $this->dir = $dir;
 }
Example #22
0
 /**
  * Tests getting testcase description.
  */
 public function testGetDescription()
 {
     $this->assertEquals(self::DESCRIPTION, $this->testcase->getDescription());
 }