| Total Complexity | 5 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class ProductVariantTraitSpec extends ObjectBehavior |
||
| 13 | { |
||
| 14 | public function let(): void |
||
| 15 | { |
||
| 16 | $class = new class() implements BarcodeAwareInterface { |
||
| 17 | use ProductVariantTrait; |
||
| 18 | }; |
||
| 19 | |||
| 20 | $this->beAnInstanceOf(get_class($class)); |
||
| 21 | } |
||
| 22 | |||
| 23 | public function it_implements_barcode_aware_interface(): void |
||
| 24 | { |
||
| 25 | $this->shouldImplement(BarcodeAwareInterface::class); |
||
| 26 | } |
||
| 27 | |||
| 28 | public function it_marks_barcode_as_checked(): void |
||
| 32 | } |
||
| 33 | |||
| 34 | public function it_sets_marked_timestamp(): void |
||
| 35 | { |
||
| 36 | $this->markBarcodeAsChecked(true); |
||
| 37 | $this->getBarcodeChecked()->shouldReturnAnInstanceOf(DateTimeInterface::class); |
||
| 38 | } |
||
| 39 | |||
| 40 | public function it_marks_barcode_as_valid(): void |
||
| 44 | } |
||
| 45 | } |
||
| 46 |