getData() public method

public getData ( )
示例#1
0
文件: StatsTest.php 项目: imbo/imbo
 /**
  * @covers Imbo\Model\Stats::getData
  */
 public function testGetData()
 {
     $this->model->setNumUsers(100)->setNumBytes(1000)->setNumImages(10000);
     $this->model['some'] = 'value';
     $this->assertSame(['numUsers' => 100, 'numBytes' => 1000, 'numImages' => 10000, 'customStats' => ['some' => 'value']], $this->model->getData());
 }