Skip to content
Permalink
Browse files

Fix tests code for PHP 7.2

  • Loading branch information...
LeSuisse committed May 25, 2019
1 parent ed4378b commit a73cdf1cf80a0d77720c25a16d04a4a10c9f4ead
@@ -45,7 +45,7 @@ public function itShouldIncreaseWithLabels() : void
'counter',
'this is for testing',
['foo', 'bar'],
[new Sample('test_some_metric', 3, [], ['lalal', 'lululu'])],
[new Sample('test_some_metric', 3, [], ['lalal', 'lululu'])]
),
]
)
@@ -67,7 +67,7 @@ public function itShouldIncreaseWithoutLabelWhenNoLabelsAreDefined() : void
'counter',
'this is for testing',
[],
[new Sample('test_some_metric', 1, [], [])],
[new Sample('test_some_metric', 1, [], [])]
),
]
)
@@ -43,7 +43,7 @@ public function itShouldAllowSetWithLabels() : void
'gauge',
'this is for testing',
['foo', 'bar'],
[new Sample('test_some_metric', 123, [], ['lalal', 'lululu'])],
[new Sample('test_some_metric', 123, [], ['lalal', 'lululu'])]
),
]
)
@@ -67,7 +67,7 @@ public function itShouldAllowSetWithoutLabelWhenNoLabelsAreDefined() : void
'gauge',
'this is for testing',
[],
[new Sample('test_some_metric', 123, [], [])],
[new Sample('test_some_metric', 123, [], [])]
),
]
)
@@ -91,7 +91,7 @@ public function itShouldAllowSetWithAFloatValue() : void
'gauge',
'this is for testing',
[],
[new Sample('test_some_metric', 123.5, [], [])],
[new Sample('test_some_metric', 123.5, [], [])]
),
]
)
@@ -139,7 +139,7 @@ public function itShouldIncrementWithFloatValue() : void
'gauge',
'this is for testing',
['foo', 'bar'],
[new Sample('test_some_metric', 124.5, [], ['lalal', 'lululu'])],
[new Sample('test_some_metric', 124.5, [], ['lalal', 'lululu'])]
),
]
)
@@ -162,7 +162,7 @@ public function itShouldDecrementAValue() : void
'gauge',
'this is for testing',
['foo', 'bar'],
[new Sample('test_some_metric', -124, [], ['lalal', 'lululu'])],
[new Sample('test_some_metric', -124, [], ['lalal', 'lululu'])]
),
]
)
@@ -185,7 +185,7 @@ public function itShouldDecrementWithFloatValue() : void
'gauge',
'this is for testing',
['foo', 'bar'],
[new Sample('test_some_metric', -123.5, [], ['lalal', 'lululu'])],
[new Sample('test_some_metric', -123.5, [], ['lalal', 'lululu'])]
),
]
)
@@ -208,7 +208,7 @@ public function itShouldOverwriteWhenSettingTwice() : void
'gauge',
'this is for testing',
['foo', 'bar'],
[new Sample('test_some_metric', 321, [], ['lalal', 'lululu'])],
[new Sample('test_some_metric', 321, [], ['lalal', 'lululu'])]
),
]
)
@@ -59,7 +59,7 @@ public function itShouldObserveWithLabels() : void
new Sample('test_some_metric_bucket', 2, ['le'], ['lalal', 'lululu', '+Inf']),
new Sample('test_some_metric_count', 2, [], ['lalal', 'lululu']),
new Sample('test_some_metric_sum', 368, [], ['lalal', 'lululu']),
],
]
),
]
)
@@ -132,7 +132,7 @@ public function itShouldObserveValuesOfTypeFloat() : void
new Sample('test_some_metric_bucket', 2, ['le'], ['+Inf']),
new Sample('test_some_metric_count', 2, [], []),
new Sample('test_some_metric_sum', 0.41, [], []),
],
]
),
]
)
@@ -181,7 +181,7 @@ public function itShouldProvideDefaultBuckets() : void
new Sample('test_some_metric_bucket', 2, ['le'], ['+Inf']),
new Sample('test_some_metric_count', 2, [], []),
new Sample('test_some_metric_sum', 0.14, [], []),
],
]
),
]
)

0 comments on commit a73cdf1

Please sign in to comment.
You can’t perform that action at this time.