Advertisement
Guest User

Untitled

a guest
Aug 17th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. <?php
  2.  
  3. namespace Tests\Feature;
  4.  
  5. use Tests\TestCase;
  6.  
  7. class DataProviderTest extends TestCase
  8. {
  9. /**
  10. * @dataProvider additionProvider
  11. */
  12. public function testAdd($a, $b, $expected)
  13. {
  14. $this->assertSame($expected, $a + $b);
  15. }
  16.  
  17. public function additionProvider()
  18. {
  19. return [
  20. [0, 0, 0],
  21. [0, 1, 1],
  22. [1, 0, 1],
  23. [1, 1, 3]
  24. ];
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement