Example #1
0
 /**
  * @dataProvider provideSetoidLaws
  */
 public function test_it_should_obay_monoid_laws($a, $b, $c)
 {
     MonoidLaws::test(f\curryN(3, [$this, 'assertEquals']), $a, $b, $c);
 }
Example #2
0
 /**
  * @dataProvider provideRandomizedData
  */
 public function test_it_should_obey_monoid_laws(Monoid $x, Monoid $y, Monoid $z)
 {
     MonoidLaws::test(f\curryN(3, [$this, 'assertEquals']), $x, $y, $z);
 }