From a2c26504d3a8a604abed57ec49c1cf9d2afb8d78 Mon Sep 17 00:00:00 2001
From: cinemapub
Date: Fri, 13 Sep 2024 15:56:44 +0200
Subject: [PATCH] ADD: ExampleTest.php TestCase.php ExampleTest.php, MOD:
run-tests.yml composer.json
---
.github/workflows/run-tests.yml | 6 +++---
composer.json | 9 ++++-----
tests/Feature/ExampleTest.php | 5 +++++
tests/TestCase.php | 10 ++++++++++
tests/Unit/ExampleTest.php | 5 +++++
5 files changed, 27 insertions(+), 8 deletions(-)
create mode 100644 tests/Feature/ExampleTest.php
create mode 100644 tests/TestCase.php
create mode 100644 tests/Unit/ExampleTest.php
diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml
index bac4eb8..177a850 100644
--- a/.github/workflows/run-tests.yml
+++ b/.github/workflows/run-tests.yml
@@ -8,9 +8,9 @@ jobs:
strategy:
fail-fast: true
matrix:
- os: [ubuntu-latest, windows-latest]
+ os: [ubuntu-latest]
php: [8.2, 8.1]
- stability: [prefer-lowest, prefer-stable]
+ stability: [prefer-stable]
name: P${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }}
@@ -22,7 +22,7 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
+ extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo, simplexml
coverage: none
- name: Setup problem matchers
diff --git a/composer.json b/composer.json
index b20043e..7e85519 100644
--- a/composer.json
+++ b/composer.json
@@ -17,12 +17,12 @@
],
"require": {
"php": "^8.1",
- "ext-simplexml": "*",
- "ext-dom": "*"
+ "ext-simplexml": "*",
+ "ext-dom": "*"
},
"require-dev": {
"laravel/pint": "^1.2",
- "phpunit/phpunit": "^9.5"
+ "pestphp/pest": "^3.0"
},
"autoload": {
"psr-4": {
@@ -35,8 +35,7 @@
}
},
"scripts": {
- "test": "vendor/bin/phpunit",
- "test-coverage": "vendor/bin/phpunit --coverage",
+ "test": "vendor/bin/pest",
"format": "vendor/bin/pint"
},
"config": {
diff --git a/tests/Feature/ExampleTest.php b/tests/Feature/ExampleTest.php
new file mode 100644
index 0000000..61cd84c
--- /dev/null
+++ b/tests/Feature/ExampleTest.php
@@ -0,0 +1,5 @@
+toBeTrue();
+});
diff --git a/tests/TestCase.php b/tests/TestCase.php
new file mode 100644
index 0000000..cfb05b6
--- /dev/null
+++ b/tests/TestCase.php
@@ -0,0 +1,10 @@
+toBeTrue();
+});