/DataProviderExample.php Secret
Last active
January 5, 2020 13:59
Revisions
-
peterfox revised this gist
Jan 5, 2020 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,5 @@ <?php /** * @dataprovider sums */ -
peterfox created this gist
Jan 5, 2020 .There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ /** * @dataprovider sums */ public function testSums($first, $second, $expected) { $this->assertSame($expected, $first + $second); } public function sums() { return [ [1, 1, 2], [2, 1, 3], ]; }