Esempio n. 1
0
 /** @dataProvider getValueTestData */
 public function testPlusValue(Specificity $specificity, $value)
 {
     $this->assertEquals($value + 123, $specificity->plus(new Specificity(1, 2, 3))->getValue());
 }
 /** @dataProvider getCompareTestData */
 public function testCompareTo(Specificity $a, Specificity $b, $result)
 {
     $this->assertEquals($result, $a->compareTo($b));
 }