Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace Tests\Feature;
- use Tests\TestCase;
- class DataProviderTest extends TestCase
- {
- /**
- * @dataProvider additionProvider
- */
- public function testAdd($a, $b, $expected)
- {
- $this->assertSame($expected, $a + $b);
- }
- public function additionProvider()
- {
- return [
- [0, 0, 0],
- [0, 1, 1],
- [1, 0, 1],
- [1, 1, 3]
- ];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement