@@ -23,8 +23,9 @@ public function testIsRef(): void
23
23
$ sheet ->getCell ('A8 ' )->setValue ('=ISREF(INDIRECT(" ' . $ sheet ->getTitle () . '" & "!" & "A1")) ' );
24
24
$ sheet ->getCell ('A9 ' )->setValue ('=ISREF(INDIRECT("A1")) ' );
25
25
$ sheet ->getCell ('A10 ' )->setValue ('=ISREF(INDIRECT("Invalid Worksheet" & "!" & "A1")) ' );
26
- $ sheet ->getCell ('A11 ' )->setValue ('=ISREF(ZZZ1) ' );
27
- $ sheet ->getCell ('A12 ' )->setValue ('=ISREF(CHOOSE(2, A1, B1, C1)) ' );
26
+ $ sheet ->getCell ('A11 ' )->setValue ('=ISREF(INDIRECT("Invalid Worksheet" & "!A1")) ' );
27
+ $ sheet ->getCell ('A12 ' )->setValue ('=ISREF(ZZZ1) ' );
28
+ $ sheet ->getCell ('A13 ' )->setValue ('=ISREF(CHOOSE(2, A1, B1, C1)) ' );
28
29
29
30
self ::assertTrue ($ sheet ->getCell ('A1 ' )->getCalculatedValue ()); // Cell Reference
30
31
self ::assertTrue ($ sheet ->getCell ('A2 ' )->getCalculatedValue ()); // Cell Range
@@ -36,7 +37,8 @@ public function testIsRef(): void
36
37
self ::assertTrue ($ sheet ->getCell ('A8 ' )->getCalculatedValue ()); // Indirect to a Cell Reference
37
38
self ::assertTrue ($ sheet ->getCell ('A9 ' )->getCalculatedValue ()); // Indirect to a Worksheet/Cell Reference
38
39
self ::assertFalse ($ sheet ->getCell ('A10 ' )->getCalculatedValue ()); // Indirect to an Invalid Worksheet/Cell Reference
39
- self ::assertFalse ($ sheet ->getCell ('A11 ' )->getCalculatedValue ()); // Invalid Cell Reference
40
- self ::assertTrue ($ sheet ->getCell ('A12 ' )->getCalculatedValue ()); // returned Cell Reference
40
+ self ::assertFalse ($ sheet ->getCell ('A11 ' )->getCalculatedValue ()); // Indirect to an Invalid Worksheet/Cell Reference
41
+ self ::assertFalse ($ sheet ->getCell ('A12 ' )->getCalculatedValue ()); // Invalid Cell Reference
42
+ self ::assertTrue ($ sheet ->getCell ('A13 ' )->getCalculatedValue ()); // returned Cell Reference
41
43
}
42
44
}
0 commit comments