@@ -374,6 +374,7 @@ public function itShouldProvideDefaultBuckets()
374374 /**
375375 * @test
376376 * @expectedException \InvalidArgumentException
377+ * @expectedExceptionMessage Histogram buckets must be in increasing order
377378 */
378379 public function itShouldThrowAnExceptionWhenTheBucketSizesAreNotIncreasing ()
379380 {
@@ -383,6 +384,7 @@ public function itShouldThrowAnExceptionWhenTheBucketSizesAreNotIncreasing()
383384 /**
384385 * @test
385386 * @expectedException \InvalidArgumentException
387+ * @expectedExceptionMessage Histogram must have at least one bucket
386388 */
387389 public function itShouldThrowAnExceptionWhenThereIsLessThanOneBucket ()
388390 {
@@ -392,15 +394,17 @@ public function itShouldThrowAnExceptionWhenThereIsLessThanOneBucket()
392394 /**
393395 * @test
394396 * @expectedException \InvalidArgumentException
397+ * @expectedExceptionMessage Histogram cannot have a label named
395398 */
396399 public function itShouldThrowAnExceptionWhenThereIsALabelNamedLe ()
397400 {
398- new Histogram ($ this ->adapter , 'test ' , 'some_metric ' , 'this is for testing ' , array ('le ' ), array ());
401+ new Histogram ($ this ->adapter , 'test ' , 'some_metric ' , 'this is for testing ' , array ('le ' ), array (1 ));
399402 }
400403
401404 /**
402405 * @test
403406 * @expectedException \InvalidArgumentException
407+ * @expectedExceptionMessage Invalid metric name
404408 */
405409 public function itShouldRejectInvalidMetricsNames ()
406410 {
@@ -410,6 +414,7 @@ public function itShouldRejectInvalidMetricsNames()
410414 /**
411415 * @test
412416 * @expectedException \InvalidArgumentException
417+ * @expectedExceptionMessage Invalid label name
413418 */
414419 public function itShouldRejectInvalidLabelNames ()
415420 {
0 commit comments