Esempio n. 1
0
 public function allTimeSeries()
 {
     $response = $this->doSend('all-time-series');
     $all = new Map();
     foreach ($response as $data) {
         $timeSeries = $this->createTimeSeries($data);
         $elements = $all->get($data->tag);
         if (null === $elements) {
             $elements = new Set();
         }
         $elements->add($timeSeries);
         $all->put($data->tag, $elements);
     }
     return $all;
 }
Esempio n. 2
0
 public function testGetNull()
 {
     $value = new \stdClass();
     $this->object->put('one', $value);
     $this->assertNull($this->object->get('two'));
 }