Exemplo n.º 1
0
 public function testStaticInstance()
 {
     $client1 = Client::instance('instance1');
     $this->assertTrue($client1 instanceof Client);
     $client2 = Client::instance('instance2');
     $client3 = Client::instance('instance1');
     $this->assertEquals('DogStatsD\\Client::[instance2]', (string) $client2);
     $this->assertFalse((string) $client1 === (string) $client2);
     $this->assertTrue((string) $client1 === (string) $client3);
 }
Exemplo n.º 2
0
 public function setUp()
 {
     $this->client = new Client();
     $this->client->configure();
 }