/** * @depends testSerializationDeserialization * @param Links $obj */ public function testGetters($obj) { $this->assertEquals($obj->getHref(), "TestSample"); $this->assertEquals($obj->getRel(), "TestSample"); $this->assertEquals($obj->getTargetSchema(), HyperSchemaTest::getObject()); $this->assertEquals($obj->getMethod(), "TestSample"); $this->assertEquals($obj->getEnctype(), "TestSample"); $this->assertEquals($obj->getSchema(), HyperSchemaTest::getObject()); }
public function testSerializeDeserialize() { $link2 = new Links(); $link2->fromJson($this->links->toJSON()); $this->assertEquals($this->links, $link2); }