示例#1
0
 public function testOutputModelWithEmptyArray()
 {
     $o = new JsonView();
     $this->assertEquals(json_encode([]), $o->outputModel([]));
 }
示例#2
0
 public function testUseless()
 {
     $o = new JsonView();
     $this->assertNull($o->assign(''));
 }