|
@@ 71-77 (lines=7) @@
|
| 68 |
|
$this->denormalizer->denormalize([], Body::class); |
| 69 |
|
} |
| 70 |
|
|
| 71 |
|
public function testDenormalizeWithWrongData(): void |
| 72 |
|
{ |
| 73 |
|
$this->denormalizer->setDenormalizer($this->inner); |
| 74 |
|
|
| 75 |
|
$this->expectException(InvalidArgumentException::class); |
| 76 |
|
$this->denormalizer->denormalize('wrong', Body::class); |
| 77 |
|
} |
| 78 |
|
|
| 79 |
|
public function testDenormalizeWithWrongType(): void |
| 80 |
|
{ |
|
@@ 79-85 (lines=7) @@
|
| 76 |
|
$this->denormalizer->denormalize('wrong', Body::class); |
| 77 |
|
} |
| 78 |
|
|
| 79 |
|
public function testDenormalizeWithWrongType(): void |
| 80 |
|
{ |
| 81 |
|
$this->denormalizer->setDenormalizer($this->inner); |
| 82 |
|
|
| 83 |
|
$this->expectException(InvalidArgumentException::class); |
| 84 |
|
$this->denormalizer->denormalize([], \stdClass::class); |
| 85 |
|
} |
| 86 |
|
|
| 87 |
|
public function testDenormalize(): void |
| 88 |
|
{ |