| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 62 | public function testIs() |
||
| 63 | { |
||
| 64 | $this |
||
| 65 | ->given( |
||
| 66 | $enum = $this->fromNative($this->randomNativeValue()), |
||
| 67 | $enum1 = $this->fromNative($this->randomNativeValue()) |
||
| 68 | ) |
||
| 69 | ->then |
||
| 70 | ->boolean($enum->is($enum->toNative())) |
||
| 71 | ->isTrue() |
||
| 72 | ->boolean($enum1->is($this->invalidNativeValue())) |
||
| 73 | ->isFalse() |
||
| 74 | ; |
||
| 75 | } |
||
| 76 | } |
||
| 77 |