/**
  * Constructor method for ConversationTest
  * @param int $index
  * @param string $where
  * @param bool $negative
  * @return self
  */
 public function __construct($index, $where = null, $negative = null)
 {
     parent::__construct($index, $negative);
     if (null !== $where) {
         $this->property('where', trim($where));
     }
 }
示例#2
0
 /**
  * Constructor method for DateTest
  * @param int $index
  * @param string $dateComparison
  * @param int $d
  * @param bool $negative
  * @return self
  */
 public function __construct($index, $dateComparison = null, $d = null, $negative = null)
 {
     parent::__construct($index, $negative);
     if (null !== $dateComparison) {
         $this->property('dateComparison', trim($dateComparison));
     }
     if (null !== $d) {
         $this->property('d', (int) $d);
     }
 }
示例#3
0
 /**
  * Constructor method for BodyTest
  * @param int $index Index - specifies a guaranteed order for the test elements
  * @param string $value Value
  * @param bool $caseSensitive Case sensitive
  * @param bool $negative Specifies a "not" condition for the test
  * @return self
  */
 public function __construct($index, $value = null, $caseSensitive = null, $negative = null)
 {
     parent::__construct($index, $negative);
     if (null !== $value) {
         $this->setProperty('value', trim($value));
     }
     if (null !== $caseSensitive) {
         $this->setProperty('caseSensitive', (bool) $caseSensitive);
     }
 }
示例#4
0
 /**
  * Constructor method for CurrentTimeTest
  * @param int $index
  * @param string $dateComparison
  * @param string $time
  * @param bool $negative
  * @return self
  */
 public function __construct($index, $dateComparison = null, $time = null, $negative = null)
 {
     parent::__construct($index, $negative);
     if (null !== $dateComparison) {
         $this->setProperty('dateComparison', trim($dateComparison));
     }
     if (null !== $time) {
         $this->setProperty('time', trim($time));
     }
 }
示例#5
0
 /**
  * Constructor method for SizeTest
  * @param int $index
  * @param string $numberComparison Number comparison setting - over|under
  * @param string $size Size value
  *    Value can be specified in bytes (no suffix), kilobytes (50K), megabytes (50M) or gigabytes (2G)
  * @return self
  */
 public function __construct($index, $numberComparison = null, $size = null, $negative = null)
 {
     parent::__construct($index, $negative);
     if (null !== $numberComparison) {
         $this->setProperty('numberComparison', trim($numberComparison));
     }
     $this->_numberComparison = trim($numberComparison);
     if (null !== $size) {
         $this->setProperty('s', trim($size));
     }
 }
示例#6
0
 /**
  * Constructor method for AddressTest
  * @param int $index Index - specifies a guaranteed order for the test elements
  * @param string $header Header
  * @param string $part Part
  * @param string $comparison String comparison
  * @param string $value Value
  * @param bool $caseSensitive Case sensitive
  * @param bool $negative Specifies a "not" condition for the test
  * @return self
  */
 public function __construct($index, $header, $part, $comparison, $value, $caseSensitive = null, $negative = null)
 {
     parent::__construct($index, $negative);
     $this->setProperty('header', trim($header));
     $this->setProperty('part', trim($part));
     $this->setProperty('stringComparison', trim($comparison));
     $this->setProperty('value', trim($value));
     if (null !== $caseSensitive) {
         $this->setProperty('caseSensitive', (bool) $caseSensitive);
     }
 }
示例#7
0
 /**
  * Constructor method for HeaderTest
  * @param int $index Index - specifies a guaranteed order for the test elements
  * @param string $header Header
  * @param string $stringComparison String comparison
  * @param string $value Value
  * @param bool $caseSensitive Case sensitive
  * @param bool $negative Specifies a "not" condition for the test
  * @return self
  */
 public function __construct($index, $header = null, $stringComparison = null, $value = null, $caseSensitive = null, $negative = null)
 {
     parent::__construct($index, $negative);
     if (null !== $header) {
         $this->property('header', trim($header));
     }
     if (null !== $stringComparison) {
         $this->property('stringComparison', trim($stringComparison));
     }
     if (null !== $value) {
         $this->property('value', trim($value));
     }
     if (null !== $caseSensitive) {
         $this->property('caseSensitive', (bool) $caseSensitive);
     }
 }
示例#8
0
 /**
  * Constructor method for MeTest
  * @param int $index
  * @param string $header
  * @param bool $negative
  * @return self
  */
 public function __construct($index, $header, $negative = null)
 {
     parent::__construct($index, $negative);
     $this->setProperty('header', trim($header));
 }
 /**
  * Constructor method for CurrentDayOfWeekTest
  * @param int $index
  * @param string $value
  * @param bool $negative
  * @return self
  */
 public function __construct($index, $value = null, $negative = null)
 {
     parent::__construct($index, $negative);
     $this->property('value', trim($value));
 }
示例#10
0
 /**
  * Constructor method for FlaggedTest
  * @param int $index
  * @param string $flagName
  * @param bool $negative
  * @return self
  */
 public function __construct($index, $flagName, $negative = null)
 {
     parent::__construct($index, $negative);
     $this->property('flagName', trim($flagName));
 }