__construct() 공개 메소드

public __construct ( $description, PHPUnit_Framework_ComparisonFailure $comparisonFailure = NULL, $message = '' )
$comparisonFailure PHPUnit_Framework_ComparisonFailure
예제 #1
0
 public function __construct($message, $expectedImage, $currentImage, $deviationImage)
 {
     $this->deviationImage = $deviationImage;
     $this->currentImage = $currentImage;
     $this->expectedImage = $expectedImage;
     parent::__construct($message);
 }
 public function __construct($message, ComparisonResult $comparisonResult, Storage $storage, $identifier = "leer")
 {
     $this->result = $comparisonResult;
     $this->storage = $storage;
     $this->identifier = $identifier;
     parent::__construct($message);
 }
예제 #3
0
 public function __construct($description, $diff = '', $message = '')
 {
     if (!$diff instanceof \SebastianBergmann\Comparator\ComparisonFailure) {
         if (!is_scalar($diff)) {
             $diff = print_r($diff, true);
         }
         $this->diff = $diff;
         $diff = null;
     }
     parent::__construct($description, $diff);
 }
예제 #4
0
 public function __construct($description, $diff = '', $message = '')
 {
     if (!$diff instanceof PHPUnit_Framework_ComparisonFailure) {
         if (!is_scalar($diff)) {
             $diff = print_r($diff, true);
         }
         $this->diff = $diff;
         $diff = null;
     }
     parent::__construct($description, $diff);
 }
 public function __construct($command = '', $locator = '')
 {
     $this->command = $command;
     $locator_description = strlen($locator) > 0 ? '<' . $locator . '>' : 'this element';
     parent::__construct("Could not interact with {$locator_description} because it is not visible\nCommand: {$command}");
 }
예제 #6
0
 public function __construct($msg)
 {
     parent::__construct($msg, null, null);
 }