public function testGetCode() { $exception = new InvalidParamException(); $this->assertSame(-32602, $exception->getCode()); }
public function __construct($fn, $expected, $num) { parent::__construct($fn, 'expects ' . $expected . ' parameters; ' . $num . ' given'); }