$this->expectException(InvalidArgumentException::class); $this->expectExceptionMessage(sprintf('Parameter "groups" of annotation "%s" must be a string or an array of strings. Got "stdClass"', Context::class));
newContext(context: ['foo' => 'bar'], groups: ['fine', new \stdClass()]); }