src/Entities/Assertions/BasicAssertion.php 1 location
|
@@ 119-124 (lines=6) @@
|
| 116 |
|
// Invert the operator |
| 117 |
|
$this->operator = $this->inversionMapping[$this->operator]; |
| 118 |
|
// Don't forget to mark this assertion as inverted |
| 119 |
|
if ($this->inverted === true) { |
| 120 |
|
$this->inverted = false; |
| 121 |
|
|
| 122 |
|
} else { |
| 123 |
|
$this->inverted = true; |
| 124 |
|
} |
| 125 |
|
|
| 126 |
|
return true; |
| 127 |
|
|
src/Entities/Assertions/ChainedAssertion.php 1 location
|
@@ 131-136 (lines=6) @@
|
| 128 |
|
*/ |
| 129 |
|
public function invert() |
| 130 |
|
{ |
| 131 |
|
if ($this->inverted === true) { |
| 132 |
|
$this->inverted = false; |
| 133 |
|
|
| 134 |
|
} else { |
| 135 |
|
$this->inverted = true; |
| 136 |
|
} |
| 137 |
|
|
| 138 |
|
// Iterate over all assertions and invert them. |
| 139 |
|
$iterator = $this->assertionList->getIterator(); |