 554684720d
			
		
	
	
		554684720d
		
			
		
	
	
	
	
		
			
			* Merge branch 'master' of C:\Projects\PHPOffice\PHPSpreadsheet\develop with conflicts. * Adjusted logic for COUNT() function to handle differences in EXCEL, GNUMERIC and OPENOFFICE modes for cells and for literal values * Fix case-sensitivity in filenames * Appeasing Codesniffer * Resolve COUNTA() differences between cell values and literals * Style fixes * Start refactoring statistical function tests into individual tests rather than having a single, giant test for all statistical functions.... first step toward doing this for all tests * More refactoring into separate tests If all functions have their own individual test files, it should be a lot easier to identify which functions aren't covered by tests yet * Missing last lines in files
		
			
				
	
	
		
			52 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			52 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| use PhpOffice\PhpSpreadsheet\Shared\Date;
 | |
| 
 | |
| return [
 | |
|     [
 | |
|         5,
 | |
|         [-1, 0, 1, 2, 3],
 | |
|     ],
 | |
|     [
 | |
|         11,
 | |
|         [
 | |
|             // The index simulates a cell value
 | |
|             '0.1.A' => Date::stringToExcel('1900-02-01'),
 | |
|             '0.2.A' => 0,
 | |
|             '0.3.A' => null,
 | |
|             '0.4.A' => 1.2,
 | |
|             '0.5.A' => '',
 | |
|             '0.6.A' => 2.4,
 | |
|             '0.7.A' => null,
 | |
|             '0.8.A' => '',
 | |
|             '0.9.A' => 3.6,
 | |
|             '0.10.A' => null,
 | |
|             '0.11.A' => '',
 | |
|             '0.12.A' => 4.8,
 | |
|             '0.13.A' => 'Not a numeric',
 | |
|             '0.14.A' => 6
 | |
|         ],
 | |
|     ],
 | |
|     [
 | |
|         14,
 | |
|         [
 | |
|             // No index indicates arguments passed as literals rather than cell values
 | |
|             // In this case, nuls are counted as well as numbers
 | |
|             Date::stringToExcel('1900-02-01'),
 | |
|             0,
 | |
|             null,
 | |
|             1.2,
 | |
|             '',
 | |
|             2.4,
 | |
|             null,
 | |
|             '',
 | |
|             3.6,
 | |
|             null,
 | |
|             '',
 | |
|             4.8,
 | |
|             'Not a numeric',
 | |
|             6
 | |
|         ],
 | |
|     ],
 | |
| ];
 |