PHPUnit_Extensions_TestDecorator::__construct PHP Метод

__construct() публичный Метод

Constructor.
public __construct ( PHPUnit_Framework_Test $test )
$test PHPUnit_Framework_Test
    public function __construct(PHPUnit_Framework_Test $test)
    {
        $this->test = $test;
    }

Usage Example

Пример #1
0
 /**
  * Constructor.
  *
  * @param  PHPUnit_Framework_Test $test
  * @param  integer                 $timesRepeat
  * @throws InvalidArgumentException
  * @access public
  */
 public function __construct(PHPUnit_Framework_Test $test, $timesRepeat = 1)
 {
     parent::__construct($test);
     if (is_integer($timesRepeat) && $timesRepeat >= 0) {
         $this->timesRepeat = $timesRepeat;
     } else {
         throw new InvalidArgumentException('Argument 2 must be a positive integer.');
     }
 }
All Usage Examples Of PHPUnit_Extensions_TestDecorator::__construct