Skip to content

Commit

Permalink
ADD: ExampleTest.php TestCase.php ExampleTest.php, MOD: run-tests.yml…
Browse files Browse the repository at this point in the history
… composer.json
  • Loading branch information
cinemapub committed Sep 13, 2024
1 parent 1afa623 commit a2c2650
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand All @@ -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
Expand Down
9 changes: 4 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -35,8 +35,7 @@
}
},
"scripts": {
"test": "vendor/bin/phpunit",
"test-coverage": "vendor/bin/phpunit --coverage",
"test": "vendor/bin/pest",
"format": "vendor/bin/pint"
},
"config": {
Expand Down
5 changes: 5 additions & 0 deletions tests/Feature/ExampleTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

test('example', function () {
expect(true)->toBeTrue();
});
10 changes: 10 additions & 0 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

namespace Tests;

use PHPUnit\Framework\TestCase as BaseTestCase;

abstract class TestCase extends BaseTestCase
{
//
}
5 changes: 5 additions & 0 deletions tests/Unit/ExampleTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

test('example', function () {
expect(true)->toBeTrue();
});

0 comments on commit a2c2650

Please sign in to comment.