예제 #1
0
 /**
  * @depends testInsertResource
  * 
  */
 public function testGetCollection()
 {
     $this->initContext();
     $collection = new RestoCollection('Example', $this->context, $this->admin, array('autoload' => true));
     $this->assertEquals('Example', $collection->name);
     $this->assertEquals('http:///resto/collections/Example', $collection->getUrl());
     $json = json_decode($collection->toJSON(false));
     $this->assertEquals('Example', $json->name);
     /*
      * TODO :  no check for toXML function
      */
     $xml = $collection->toXML();
 }