File tree Expand file tree Collapse file tree 6 files changed +7
-19
lines changed
tests/PhpSpreadsheetTests/Calculation/Functions/LookupRef Expand file tree Collapse file tree 6 files changed +7
-19
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ class AddressTest extends TestCase
15
15
*/
16
16
public function testADDRESS ($ expectedResult , ...$ args ): void
17
17
{
18
- $ result = LookupRef:: cellAddress (...$ args );
18
+ $ result = LookupRef \Address:: cell (...$ args );
19
19
self ::assertEquals ($ expectedResult , $ result );
20
20
}
21
21
Original file line number Diff line number Diff line change 3
3
namespace PhpOffice \PhpSpreadsheetTests \Calculation \Functions \LookupRef ;
4
4
5
5
use PhpOffice \PhpSpreadsheet \Calculation \Calculation ;
6
- use PhpOffice \PhpSpreadsheet \Calculation \Functions ;
7
6
use PhpOffice \PhpSpreadsheet \Calculation \LookupRef ;
8
7
use PHPUnit \Framework \TestCase ;
9
8
10
9
class ChooseTest extends TestCase
11
10
{
12
- protected function setUp (): void
13
- {
14
- Functions::setCompatibilityMode (Functions::COMPATIBILITY_EXCEL );
15
- }
16
-
17
11
/**
18
12
* @dataProvider providerCHOOSE
19
13
*
20
14
* @param mixed $expectedResult
21
15
*/
22
16
public function testCHOOSE ($ expectedResult , ...$ args ): void
23
17
{
24
- $ result = LookupRef:: CHOOSE (...$ args );
18
+ $ result = LookupRef \Selection:: choose (...$ args );
25
19
self ::assertEquals ($ expectedResult , $ result );
26
20
}
27
21
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ class ColumnsTest extends TestCase
16
16
*/
17
17
public function testCOLUMNS ($ expectedResult , $ arg ): void
18
18
{
19
- $ result = LookupRef::COLUMNS ($ arg );
19
+ $ result = LookupRef \RowColumnInformation ::COLUMNS ($ arg );
20
20
self ::assertEquals ($ expectedResult , $ result );
21
21
}
22
22
Original file line number Diff line number Diff line change @@ -75,15 +75,15 @@ public function testGrandfathered(): void
75
75
// Some old tests called function directly using array of strings;
76
76
// ensure these work as before.
77
77
$ expectedResult = '#REF! ' ;
78
- $ result = LookupRef::HLOOKUP (
78
+ $ result = /** @scrutinizer ignore-deprecated */ LookupRef::HLOOKUP (
79
79
'Selection column ' ,
80
80
['Selection column ' , 'Value to retrieve ' ],
81
81
5 ,
82
82
false
83
83
);
84
84
self ::assertSame ($ expectedResult , $ result );
85
85
$ expectedResult = 'Value to retrieve ' ;
86
- $ result = LookupRef::HLOOKUP (
86
+ $ result = /** @scrutinizer ignore-deprecated */ LookupRef::HLOOKUP (
87
87
'Selection column ' ,
88
88
['Selection column ' , 'Value to retrieve ' ],
89
89
2 ,
Original file line number Diff line number Diff line change 3
3
namespace PhpOffice \PhpSpreadsheetTests \Calculation \Functions \LookupRef ;
4
4
5
5
use PhpOffice \PhpSpreadsheet \Calculation \Calculation ;
6
- use PhpOffice \PhpSpreadsheet \Calculation \Functions ;
7
6
use PhpOffice \PhpSpreadsheet \Calculation \LookupRef ;
8
7
use PHPUnit \Framework \TestCase ;
9
8
10
9
class LookupTest extends TestCase
11
10
{
12
- protected function setUp (): void
13
- {
14
- Functions::setCompatibilityMode (Functions::COMPATIBILITY_EXCEL );
15
- }
16
-
17
11
/**
18
12
* @dataProvider providerLOOKUP
19
13
*
20
14
* @param mixed $expectedResult
21
15
*/
22
16
public function testLOOKUP ($ expectedResult , ...$ args ): void
23
17
{
24
- $ result = LookupRef:: LOOKUP (...$ args );
18
+ $ result = LookupRef \Lookup:: lookup (...$ args );
25
19
self ::assertEquals ($ expectedResult , $ result );
26
20
}
27
21
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ class RowsTest extends TestCase
16
16
*/
17
17
public function testROWS ($ expectedResult , $ arg ): void
18
18
{
19
- $ result = LookupRef::ROWS ($ arg );
19
+ $ result = LookupRef \RowColumnInformation ::ROWS ($ arg );
20
20
self ::assertEquals ($ expectedResult , $ result );
21
21
}
22
22
You can’t perform that action at this time.
0 commit comments