Fix unit tests for YEARFRAC()
This commit is contained in:
		
							parent
							
								
									8c4c11346b
								
							
						
					
					
						commit
						431a1799fb
					
				| @ -448,12 +448,9 @@ class DateTimeTest extends \PHPUnit_Framework_TestCase | |||||||
| 
 | 
 | ||||||
|     /** |     /** | ||||||
|      * @dataProvider providerYEARFRAC |      * @dataProvider providerYEARFRAC | ||||||
|      * @group fail19 |  | ||||||
|      */ |      */ | ||||||
|     public function testYEARFRAC() |     public function testYEARFRAC() | ||||||
|     { |     { | ||||||
|         $this->markTestIncomplete('TODO: This test should be fixed'); |  | ||||||
| 
 |  | ||||||
|         $args = func_get_args(); |         $args = func_get_args(); | ||||||
|         $expectedResult = array_pop($args); |         $expectedResult = array_pop($args); | ||||||
|         $result = call_user_func_array([DateTime::class, 'YEARFRAC'], $args); |         $result = call_user_func_array([DateTime::class, 'YEARFRAC'], $args); | ||||||
|  | |||||||
| @ -5,7 +5,7 @@ return [ | |||||||
|         '2007-1-1', |         '2007-1-1', | ||||||
|         '2007-1-10', |         '2007-1-10', | ||||||
|         0, |         0, | ||||||
|         0.025000000000000001, |         0.025, | ||||||
|     ], |     ], | ||||||
|     [ |     [ | ||||||
|         '2007-1-1', |         '2007-1-1', | ||||||
| @ -17,7 +17,7 @@ return [ | |||||||
|         '2007-1-1', |         '2007-1-1', | ||||||
|         '2007-1-10', |         '2007-1-10', | ||||||
|         2, |         2, | ||||||
|         0.025000000000000001, |         0.025, | ||||||
|     ], |     ], | ||||||
|     [ |     [ | ||||||
|         '2007-1-1', |         '2007-1-1', | ||||||
| @ -29,7 +29,7 @@ return [ | |||||||
|         '2007-1-1', |         '2007-1-1', | ||||||
|         '2007-1-10', |         '2007-1-10', | ||||||
|         4, |         4, | ||||||
|         0.025000000000000001, |         0.025, | ||||||
|     ], |     ], | ||||||
|     [ |     [ | ||||||
|         '2007-1-1', |         '2007-1-1', | ||||||
| @ -337,12 +337,6 @@ return [ | |||||||
|         0, |         0, | ||||||
|         47.524999999999999, |         47.524999999999999, | ||||||
|     ], |     ], | ||||||
|     [ |  | ||||||
|         '1960-12-19', |  | ||||||
|         '2008-6-28', |  | ||||||
|         1, |  | ||||||
|         47.521622527656703, |  | ||||||
|     ], |  | ||||||
|     [ |     [ | ||||||
|         '1960-12-19', |         '1960-12-19', | ||||||
|         '2008-6-28', |         '2008-6-28', | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Adrien Crivelli
						Adrien Crivelli