6 class ContribsPagerTest
extends \PHPUnit_Framework_TestCase
{
8 * @dataProvider dateFilterOptionProcessingProvider
9 * @param array $inputOpts Input options
10 * @param array $expectedOpts Expected options
12 public function testDateFilterOptionProcessing( $inputOpts, $expectedOpts ) {
13 $this->assertArraySubset( $expectedOpts, ContribsPager
::processDateFilter( $inputOpts ) );
16 public static function dateFilterOptionProcessingProvider() {
18 [ [ 'start' => '2016-05-01',
19 'end' => '2016-06-01',
22 [ 'start' => '2016-05-01',
23 'end' => '2016-06-01' ] ],
24 [ [ 'start' => '2016-05-01',
25 'end' => '2016-06-01',
28 [ 'start' => '2016-05-01',
29 'end' => '2016-06-01' ] ],
30 [ [ 'start' => '2016-05-01',
31 'end' => '2016-06-01',
35 'end' => '2012-05-31' ] ],
41 'end' => '2012-05-31' ] ],
47 'end' => '2012-12-31' ] ],