Ejemplo n.º 1
0
 static function setupBeforeClass()
 {
     parent::setupBeforeClass();
     // create channel
     self::$uuid = self::createChannel('Meter', 'power', 1);
     // add data
     self::executeRequest(Request::create('/data/' . self::$uuid . '.json', 'POST', array(), array(), array(), array(), json_encode(array(array(1000000, 1000), array(2000000, 2000), array(3000000, 1000)))));
 }
Ejemplo n.º 2
0
 /**
  * Create channel
  */
 static function setupBeforeClass()
 {
     parent::setupBeforeClass();
     self::$uuid = self::createChannel('Counter', 'electric meter', self::$resolution);
 }
Ejemplo n.º 3
0
 /**
  * Create DB connection and setup channel
  */
 static function setupBeforeClass()
 {
     parent::setupBeforeClass();
     self::$em = \Volkszaehler\Router::createEntityManager();
     self::$conn = self::$em->getConnection();
 }