class SpecificityTest extends TestCase
{ /** @dataProvider getValueTestData */
public function testValue(Specificity
$specificity,
$value) { $this->
assertEquals($value,
$specificity->
getValue());
} /** @dataProvider getValueTestData */
public function testPlusValue(Specificity
$specificity,
$value) { $this->
assertEquals($value + 123,
$specificity->
plus(new Specificity(1, 2, 3
))->
getValue());
} public static function getValueTestData() { return [ [new Specificity(0, 0, 0
), 0
],
[new Specificity(0, 0, 2
), 2
],
[new Specificity(0, 3, 0
), 30
],
[new Specificity(4, 0, 0
), 400
],
[new Specificity(4, 3, 2
), 432
],
];
}