protected function getValueSerialization(SelectionRequest $request) { if ($request instanceof PropertySelection) { return array('property' => $request->getPropertyId()->toArray()); } if ($request instanceof SubjectSelection) { return array(); } throw new UnsupportedObjectException($request); }
/** * @dataProvider instanceProvider * * @since 1.0 * * @param SelectionRequest $object */ public function testGetHashStability(SelectionRequest $object) { $this->assertEquals($object->getHash(), $object->getHash()); }