33 lines
		
	
	
		
			808 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
		
		
			
		
	
	
			33 lines
		
	
	
		
			808 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| 
								 | 
							
								<?php
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								namespace PhpOffice\PhpSpreadsheetTests\Calculation\Functions\Engineering;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								use PhpOffice\PhpSpreadsheet\Calculation\Engineering;
							 | 
						||
| 
								 | 
							
								use PhpOffice\PhpSpreadsheet\Calculation\Functions;
							 | 
						||
| 
								 | 
							
								use PHPUnit\Framework\TestCase;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								class BitLShiftTest extends TestCase
							 | 
						||
| 
								 | 
							
								{
							 | 
						||
| 
								 | 
							
								    public function setUp()
							 | 
						||
| 
								 | 
							
								    {
							 | 
						||
| 
								 | 
							
								        Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    /**
							 | 
						||
| 
								 | 
							
								     * @dataProvider providerBITLSHIFT
							 | 
						||
| 
								 | 
							
								     *
							 | 
						||
| 
								 | 
							
								     * @param mixed $expectedResult
							 | 
						||
| 
								 | 
							
								     * @param mixed[] $args
							 | 
						||
| 
								 | 
							
								     */
							 | 
						||
| 
								 | 
							
								    public function testBITLSHIFT($expectedResult, array $args)
							 | 
						||
| 
								 | 
							
								    {
							 | 
						||
| 
								 | 
							
								        $result = Engineering::BITLSHIFT(...$args);
							 | 
						||
| 
								 | 
							
								        $this->assertEquals($expectedResult, $result);
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    public function providerBITLSHIFT()
							 | 
						||
| 
								 | 
							
								    {
							 | 
						||
| 
								 | 
							
								        return require 'data/Calculation/Engineering/BITLSHIFT.php';
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								}
							 |