chore: major code cleanup and type safety using phpstan
This commit is contained in:
1 parent
060cbea9da
commit
3da73d626b
103 files changed
+976
-1192
No files matched your search
@@ -61,10 +61,10 @@ class PickupLoaderTest extends TestCase
|
||||
$this->loader->patchPickupsDetails($travel);
|
||||
|
||||
// Pickups should be sorted chronologically: 10, 20, 30
|
||||
$this->assertSame([10, 20, 30], array_keys($travel->pickups));
|
||||
self::assertSame([10, 20, 30], array_keys($travel->pickups));
|
||||
|
||||
// Drop-offs should be in reverse order: 30, 20, 10
|
||||
$this->assertSame([30, 20, 10], array_keys($travel->dropOffs));
|
||||
self::assertSame([30, 20, 10], array_keys($travel->dropOffs));
|
||||
}
|
||||
|
||||
public function testDropOffsNotInPickupsAreAppendedAtEnd(): void
|
||||
@@ -94,7 +94,7 @@ class PickupLoaderTest extends TestCase
|
||||
$this->loader->patchPickupsDetails($travel);
|
||||
|
||||
// Drop-offs: reversed pickups (20, 10), then unmatched (99)
|
||||
$this->assertSame([20, 10, 99], array_keys($travel->dropOffs));
|
||||
self::assertSame([20, 10, 99], array_keys($travel->dropOffs));
|
||||
}
|
||||
|
||||
public function testDropOffsWithTimeDataAreSortedChronologically(): void
|
||||
@@ -133,6 +133,6 @@ class PickupLoaderTest extends TestCase
|
||||
$this->loader->patchPickupsDetails($travel);
|
||||
|
||||
// Drop-offs should be sorted by time, not by reversed pickup order
|
||||
$this->assertSame([30, 20, 10], array_keys($travel->dropOffs));
|
||||
self::assertSame([30, 20, 10], array_keys($travel->dropOffs));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user