/** * {@inheritDoc} */ public function jsonSerialize() { return array_merge(parent::jsonSerialize(), ['url' => $this->getUrl()]); }
/** * {@inheritDoc} */ public function jsonSerialize() { return array_merge(parent::jsonSerialize(), ['package' => $this->getPackage()]); }
public function testJsonSerialize() { $commit = new Repository(); $commit->setName('Name'); $this->assertInternalType('array', $commit->jsonSerialize()); }