Skip to content

Commit adb9143

Browse files
committed
tests: update golden files and create SCIP snapshot with strict=false
1 parent 990fa23 commit adb9143

5 files changed

Lines changed: 10 additions & 10 deletions

File tree

tests/Indexer/IndexerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function testIndexer(): void
7171
$actualPath = self::TESTDATA_DIR . 'actual';
7272

7373
$output = [];
74-
$result = exec("scip snapshot --from {$this->indexFile} --to {$actualPath}", $output);
74+
$result = exec("scip snapshot --strict=false --from={$this->indexFile} --to={$actualPath}", $output);
7575
if ($result === false) {
7676
self::fail('Error executing scip: ' . ($output[0] ?? 'no output') . '.');
7777
}

tests/Indexer/testdata/golden/src/ClassA.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ public function __construct(?int $p) { $this->z1 = $p; }
193193
1 => $this->a1,
194194
// ^^ reference scip-php composer davidrjenni/scip-php-test 2879a47ba00225b1d0cf31ebe8b9fc7f6cd28be5 TestData/ClassA#$a1.
195195
PHP_MAJOR_VERSION => $this->a1?->b1,
196-
// ^^^^^^^^^^^^^^^^^ reference scip-php composer php 8.4.15 PHP_MAJOR_VERSION.
196+
// ^^^^^^^^^^^^^^^^^ reference scip-php composer php 8.4.19 PHP_MAJOR_VERSION.
197197
// ^^ reference scip-php composer davidrjenni/scip-php-test 2879a47ba00225b1d0cf31ebe8b9fc7f6cd28be5 TestData/ClassA#$a1.
198198
// ^^ reference scip-php composer davidrjenni/scip-php-test 2879a47ba00225b1d0cf31ebe8b9fc7f6cd28be5 TestData/ClassB#$b1.
199199
})->b2;

tests/Indexer/testdata/golden/src/ClassF.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace TestData;
66

77
use function strlen;
8-
// ^^^^^^ reference scip-php composer php 8.4.15 strlen().
8+
// ^^^^^^ reference scip-php composer php 8.4.19 strlen().
99

1010
/** @method ClassA m1(int $p1, $p2, bool $p3) */
1111
// ^^ definition scip-php composer davidrjenni/scip-php-test 2879a47ba00225b1d0cf31ebe8b9fc7f6cd28be5 TestData/ClassF#m1().
@@ -50,7 +50,7 @@ public function f1(): int
5050
{
5151
return $this->f1 + 42 + strlen('ABC');
5252
// ^^ reference scip-php composer davidrjenni/scip-php-test 2879a47ba00225b1d0cf31ebe8b9fc7f6cd28be5 TestData/ClassF#$f1.
53-
// ^^^^^^ reference scip-php composer php 8.4.15 strlen().
53+
// ^^^^^^ reference scip-php composer php 8.4.19 strlen().
5454
}
5555

5656
public static function f2(): ClassA

tests/Indexer/testdata/golden/src/ClassH.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
namespace TestData
66
{
77
use Exception;
8-
// ^^^^^^^^^ reference scip-php composer php 8.4.15 Exception#
8+
// ^^^^^^^^^ reference scip-php composer php 8.4.19 Exception#
99

1010
final class ClassH extends Exception
1111
// ^^^^^^ definition scip-php composer davidrjenni/scip-php-test 2879a47ba00225b1d0cf31ebe8b9fc7f6cd28be5 TestData/ClassH#
1212
// documentation
1313
// > ```php
1414
// > final class ClassH extends Exception
1515
// > ```
16-
// ^^^^^^^^^ reference scip-php composer php 8.4.15 Exception#
16+
// ^^^^^^^^^ reference scip-php composer php 8.4.19 Exception#
1717
{
1818

1919
public function __construct()
@@ -24,8 +24,8 @@ public function __construct()
2424
// > ```
2525
{
2626
parent::__construct();
27-
// ^^^^^^ reference scip-php composer php 8.4.15 Exception#
28-
// ^^^^^^^^^^^ reference scip-php composer php 8.4.15 Exception#__construct().
27+
// ^^^^^^ reference scip-php composer php 8.4.19 Exception#
28+
// ^^^^^^^^^^^ reference scip-php composer php 8.4.19 Exception#__construct().
2929
}
3030

3131
public function h1(): int
@@ -40,7 +40,7 @@ public function h1(): int
4040
// ^^ reference scip-php composer davidrjenni/scip-php-test 2879a47ba00225b1d0cf31ebe8b9fc7f6cd28be5 TestData/ClassF#f2().
4141
// ^^ reference scip-php composer davidrjenni/scip-php-test 2879a47ba00225b1d0cf31ebe8b9fc7f6cd28be5 TestData/ClassA#a2().
4242
return $this->getCode() + fun2()->a2() * $x;
43-
// ^^^^^^^ reference scip-php composer php 8.4.15 Exception#getCode().
43+
// ^^^^^^^ reference scip-php composer php 8.4.19 Exception#getCode().
4444
// ^^^^ reference scip-php composer davidrjenni/scip-php-test 2879a47ba00225b1d0cf31ebe8b9fc7f6cd28be5 fun2().
4545
// ^^ reference scip-php composer davidrjenni/scip-php-test 2879a47ba00225b1d0cf31ebe8b9fc7f6cd28be5 TestData/ClassA#a2().
4646
}

tests/Indexer/testdata/golden/src/TraitE.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function e3(): int
6767
{
6868
if (true) {
6969
return 23 - count([0]);
70-
// ^^^^^ reference scip-php composer php 8.4.15 count().
70+
// ^^^^^ reference scip-php composer php 8.4.19 count().
7171
}
7272
if (false) {
7373
return 42;

0 commit comments

Comments
 (0)