Reverted guzzle to v.5 to support php 5.4, increased verbosity and improved internal api; improved readme

This commit is contained in:
Stephen Hoogendijk
2015-06-25 11:48:30 +02:00
parent c01fc4d3d0
commit a3405a7c15
10 changed files with 313 additions and 160 deletions
+6 -5
View File
@@ -15,13 +15,14 @@ class PointTest extends \PHPUnit_Framework_TestCase
{
public function testPointStringRepresentation()
{
$expected = 'cpu_load_short,host=server01,region=us-west value=0.64 myTime';
$expected = 'cpu_load_short,host=server01,region=us-west cpucount=10,value=0.64 1435222310';
$point = new Point(
$point = new Point(
'cpu_load_short',
array('host' =>'server01', 'region'=>'us-west'),
array('value' => 0.64),
'myTime'
0.64,
array('host' => 'server01', 'region' => 'us-west'),
array('cpucount' => 10),
1435222310
);
$this->assertEquals($expected, (string) $point);