Пример #1
0
 /**
  * Verifies behaviour when adding a datapoint to the response.
  *
  * @return void
  */
 public function testAddDataEntry()
 {
     $actual = new HerculesResponse('/endpoint');
     $actual->addDataEntry(['a data point']);
     $actual->addDataEntry(['a key' => 'a keyed data point']);
     $actual->addDataEntry(['another data point']);
     $expected = ['a data point', 'a key' => 'a keyed data point', 'another data point'];
     $this->assertEquals($expected, $actual->getData());
 }