public function testFullUsageWithObject() { $sender = $this->mockSender(); // $sender = new Sender(); // StatsdClient(SenderInterface $sender, $host = 'udp://localhost', $port = 8126, $reducePacket = true, $fail_silently = true) $client = new StatsdClient($sender); $factory = new StatsdDataFactory('\\Liuggio\\StatsdClient\\Entity\\StatsdData'); // create the data with the factory $data[] = $factory->timing('usageTime', 100); $data[] = $factory->increment('visitor'); $data[] = $factory->decrement('click'); $data[] = $factory->gauge('gaugor', 333); $data[] = $factory->set('uniques', 765); // send the data as array or directly as object $client->send($data); }