Skip to content

Instantly share code, notes, and snippets.

@peterfox
Last active January 5, 2020 13:59
<?php
/**
* @dataprovider sums
*/
public function testSums($first, $second, $expected)
{
$this->assertSame($expected, $first + $second);
}
public function sums()
{
return [
[1, 1, 2],
[2, 1, 3],
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment