chore: add Pest v4 testing infrastructure with Orchestra Testbench

This commit is contained in:
Joel Male
2026-04-11 08:39:39 +10:00
parent d43769dd98
commit 11daeba6fb
5 changed files with 8966 additions and 267 deletions
+44 -24
View File
@@ -1,26 +1,46 @@
{ {
"name": "wearepixel/laravel-facebook-feed", "name": "wearepixel/laravel-facebook-feed",
"type": "library", "type": "library",
"description": "Laravel Facebook Feed", "description": "Laravel Facebook Feed",
"keywords": [ "keywords": [
"laravel", "laravel",
"laravel-facebook-feed" "laravel-facebook-feed"
], ],
"version": "2.0.0", "version": "2.0.0",
"homepage": "https://github.com/wearepixel/laravel-facebook-feed", "homepage": "https://github.com/wearepixel/laravel-facebook-feed",
"license": "MIT", "license": "MIT",
"authors": [ "authors": [
{ {
"name": "Pixel", "name": "Pixel",
"email": "hello@wearepixel.com.au" "email": "hello@wearepixel.com.au"
} }
], ],
"autoload": { "autoload": {
"psr-4": { "Wearepixel\\LaravelFacebookFeed\\" : "src/" } "psr-4": {
}, "Wearepixel\\LaravelFacebookFeed\\": "src/"
"require": { }
"spatie/array-to-xml": "2.8.*|3.*.*", },
"illuminate/support": "8.*|9.*|10.*|11.*" "autoload-dev": {
}, "psr-4": {
"prefer-stable": true "Tests\\": "tests/"
}
},
"require": {
"php": ">=8.4",
"spatie/array-to-xml": "2.8.*|3.*",
"illuminate/support": "10.*|11.*|12.*|13.*"
},
"require-dev": {
"pestphp/pest": "^4.0",
"orchestra/testbench": "^10.0"
},
"scripts": {
"test": "vendor/bin/pest"
},
"prefer-stable": true,
"config": {
"allow-plugins": {
"pestphp/pest-plugin": true
}
}
} }
Generated
+8896 -243
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 {}