Exemplo n.º 1
0
 /**
  * @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());
 }
Exemplo n.º 2
0
 public function testSerializeDeserialize()
 {
     $link2 = new Links();
     $link2->fromJson($this->links->toJSON());
     $this->assertEquals($this->links, $link2);
 }