chore: add Pest v3 testing infrastructure with Orchestra Testbench

This commit is contained in:
Joel Male
2026-04-11 08:13:36 +10:00
parent db8871110a
commit d694586a65
5 changed files with 8437 additions and 196 deletions
+20 -3
View File
@@ -16,15 +16,32 @@
} }
], ],
"autoload": { "autoload": {
"psr-4": { "Wearepixel\\LaravelGoogleShoppingFeed\\" : "src/" } "psr-4": {
"Wearepixel\\LaravelGoogleShoppingFeed\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
}, },
"require": { "require": {
"php": ">=8.3", "php": ">=8.3",
"spatie/array-to-xml": "2.8.*|3.*", "spatie/array-to-xml": "2.8.*|3.*",
"illuminate/support": "10.*|11.*|12.*" "illuminate/support": "10.*|11.*|12.*|13.*"
}, },
"prefer-stable": true, "prefer-stable": true,
"require-dev": { "require-dev": {
"laravel/pint": "^1.26" "laravel/pint": "^1.29",
"pestphp/pest": "^3.0",
"orchestra/testbench": "^10.0"
},
"scripts": {
"test": "vendor/bin/pest"
},
"config": {
"allow-plugins": {
"pestphp/pest-plugin": true
}
} }
} }
Generated
+8384 -186
View File
File diff suppressed because it is too large Load Diff
+12
View File
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
>
<testsuites>
<testsuite name="Unit">
<directory>tests</directory>
</testsuite>
</testsuites>
</phpunit>
+5
View File
@@ -0,0 +1,5 @@
<?php
declare(strict_types=1);
uses(Tests\TestCase::class)->in('.');
+9
View File
@@ -0,0 +1,9 @@
<?php
declare(strict_types=1);
namespace Tests;
use Orchestra\Testbench\TestCase as BaseTestCase;
abstract class TestCase extends BaseTestCase {}