use Symfony\Component\VarDumper\Test\VarDumperTestTrait;
/**
* @author Maxime Steinhausser <maxime.steinhausser@gmail.com>
*/
class ContextTest extends TestCase
{ use VarDumperTestTrait;
protected function setUp(): void
{ $this->
setUpVarDumper([], CliDumper::DUMP_LIGHT_ARRAY | CliDumper::DUMP_TRAILING_COMMA
);
} public function testThrowsOnEmptyContext() { $this->
expectException(InvalidArgumentException::
class);
$this->
expectExceptionMessage('At least one of the "context", "normalizationContext", or "denormalizationContext" options of annotation "Symfony\Component\Serializer\Annotation\Context" must be provided as a non-empty array.'
);
new Context();
} public function testInvalidGroupOption() {