コード例 #1
0
 public function testReadCode()
 {
     $params = array('uri' => 'Test/User', 'values' => array('id' => 1), 'options' => array());
     $ro = $this->resource->read($params)->getRo();
     $this->assertSame(200, $ro->getCode());
     return $ro;
 }
コード例 #2
0
 /**
  * read User?id=1
  */
 public function testReadId1()
 {
     $params = array('uri' => $this->uri, 'values' => array('id' => 1), 'options' => array());
     $ro = $this->resource->read($params)->getRo();
     $this->assertSame(200, $ro->getCode());
     $body = $ro->getBody();
     $expected = "サンデー";
     $this->assertSame($expected, $body['name']);
 }