__construct() public method

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
ファイル: Exception.php プロジェクト: NatashaOlut/Mage_Test
 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);
 }
コード例 #5
0
 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);
 }