Skip to content

Commit 7b05bfa

Browse files
committed
build: update PHP version and deps
1 parent df0ff40 commit 7b05bfa

File tree

4 files changed

+14
-7
lines changed

4 files changed

+14
-7
lines changed

.lando.dist.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ services:
44
type: php:custom
55
via: cli
66
overrides:
7-
image: slimdeluxe/php:8.1
7+
image: slimdeluxe/php:8.3-v1.0
88
tooling:
99
php:
1010
service: appserver
@@ -14,3 +14,7 @@ tooling:
1414
service: appserver
1515
description: Run tests
1616
cmd: "composer test"
17+
format:
18+
service: appserver
19+
description: Fix code style issues
20+
cmd: "composer format"

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@
3232
}
3333
},
3434
"require": {
35-
"php": ">=8.1"
35+
"php": "^8.3"
3636
},
3737
"require-dev": {
38-
"laravel/pint": "^1.13",
39-
"pestphp/pest": "^2.24"
38+
"laravel/pint": "^1.21",
39+
"pestphp/pest": "^3.7.4"
4040
},
4141
"scripts": {
4242
"format": "vendor/bin/pint",

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.3/phpunit.xsd"
3+
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
44
bootstrap="vendor/autoload.php"
55
colors="true"
66
>

tests/Pest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,14 @@
77
|
88
| The closure you provide to your test functions is always bound to a specific PHPUnit test
99
| case class. By default, that class is "PHPUnit\Framework\TestCase". Of course, you may
10-
| need to change it using the "uses()" function to bind a different classes or traits.
10+
| need to change it using the "pest()" function to bind a different classes or traits.
1111
|
1212
*/
1313

14-
// uses(Tests\TestCase::class)->in('Feature');
14+
/*
15+
pest()->extend(Tests\TestCase::class)
16+
->in('Feature');
17+
*/
1518

1619
/*
1720
|--------------------------------------------------------------------------

0 commit comments

Comments
 (0)