use PHPUnit\Framework\TestCase;
use Symfony\Component\Finder\Comparator\NumberComparator;
class NumberComparatorTest extends TestCase
{ /**
* @dataProvider getConstructorTestData
*/
public function testConstructor($successes,
$failures) { foreach ($successes as $s) { new NumberComparator($s);
} foreach ($failures as $f) { try { new NumberComparator($f);
$this->
fail('__construct() throws an \InvalidArgumentException if the test expression is not valid.'
);
} catch (\Exception
$e) { $this->
assertInstanceOf(\InvalidArgumentException::
class,
$e, '__construct() throws an \InvalidArgumentException if the test expression is not valid.'
);
} } }