for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Cubiche package.
*
* Copyright (c) Cubiche
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Cubiche\Core\Comparable\Tests\Units;
use Cubiche\Core\Comparable\Comparator;
* Custom Tests class.
* @author Ivannis Suárez Jerez <[email protected]>
* @author Karel Osorio Ramírez <[email protected]>
class CustomTests extends AbstractComparatorTestCase
{
* {@inheritdoc}
protected function defaultConstructorArguments()
$comparator = new Comparator();
return array(function ($a, $b) use ($comparator) {
return $comparator->compare($a % 2, $b % 2);
});
}
protected function compareDataProvider()
return array(
array(1, 2, 1),
array(1, 3, 0),
array(4, 1, -1),
);