1 | <?php |
||
7 | class ConfigurationTest extends TestCase |
||
8 | { |
||
9 | public function testHost() |
||
10 | { |
||
11 | $this->client->configure([ |
||
12 | 'host' => '127.0.0.1' |
||
13 | ]); |
||
14 | $this->assertEquals('127.0.0.1', $this->client->getHost()); |
||
15 | } |
||
16 | |||
17 | /** |
||
18 | * Large ports should be out of range |
||
19 | * |
||
20 | * @expectedException \Graze\DogStatsD\Exception\ConfigurationException |
||
21 | */ |
||
22 | public function testLargePort() |
||
28 | |||
29 | |||
30 | /** |
||
31 | * Non-integer ports are not acceptable |
||
32 | * |
||
33 | * @expectedException \Graze\DogStatsD\Exception\ConfigurationException |
||
34 | */ |
||
35 | public function testStringPort() |
||
41 | |||
42 | |||
43 | /** |
||
44 | * Default Port |
||
45 | */ |
||
46 | public function testDefaultPort() |
||
50 | |||
51 | |||
52 | /** |
||
53 | * Valid Port |
||
54 | */ |
||
55 | public function testValidPort() |
||
62 | } |
||
63 |