public function testSetCallbackInvalidIdentifier() { $response = new JsonResponse('foo'); $this ->setExpectedException('InvalidArgumentException'); $response ->setCallback('+invalid'); }