getName() публичный Метод

public getName ( ) : string
Результат string
Пример #1
0
 public function testWritePointsInASingleCall()
 {
     $point1 = new Point('cpu_load_short', 0.64, array('host' => 'server01', 'region' => 'us-west'), array('cpucount' => 10), 1435222310);
     $point2 = new Point('cpu_load_short', 0.84);
     $payloadExpected = "{$point1}\n{$point2}";
     $this->mockClient->expects($this->once())->method('write')->with($this->equalTo($this->db->getName()), $this->equalTo($payloadExpected))->will($this->returnValue(true));
     $this->db->writePoints(array($point1, $point2));
 }
 /**
  * @param AbstractInfluxDbEvent $event
  */
 private function testUdpConnection(AbstractInfluxDbEvent $event)
 {
     if (!$this->udpDatabase && ($event instanceof UdpEvent || $event instanceof DeferredUdpEvent)) {
         throw new \RuntimeException('No UDP connection available for database "' . $this->httpDatabase->getName() . '". ' . 'You must enable it on the configuration to use it.');
     }
 }