Skip to content
This repository was archived by the owner on Oct 20, 2025. It is now read-only.

v1.4.3 - Initialized PHPUnit test and test workflow - Added URL parameter strict types ✅

Choose a tag to compare

@dconco dconco released this 24 Dec 22:06
· 33 commits to master since this release
a042223

This release includes several changes aimed at improving the test configurations, updating the autoload paths, and adding new traits and methods for better application configuration. Below are the most important changes:

Test Configuration Improvements:

  • .github/workflows/php.yml: Added a new GitHub Actions workflow for PHP Composer to validate and test the code on push and pull requests to the master branch.
  • .github/workflows/release.yml: Added a new workflow to configure and run tests before release, ensuring code quality before deployment.
  • .github/workflows/tests.yml: Added a new workflow to execute tests on the dev branch and push changes to the main branch if tests pass.

Autoload Path Updates:

  • composer.json: Updated the autoload paths for PhpSlides\Tests\ and modified the test script to use the correct PHPUnit path.
  • tests/manualTests/Router/RouteTest.php: Corrected the autoload path and renamed the directory from test to tests.

New Traits and Methods:

  • src/Cli/Configure.php: Added a new Configure trait to mock necessary $_SERVER variables for CLI environments.
  • src/Foundation/Application.php: Integrated the Configure trait and updated methods to use the new trait for better configuration handling in CLI environments. [1] [2] [3] [4] [5] [6]

Miscellaneous Changes:

  • .gitattributes: Updated export-ignore rules to include new cache files.
  • phpunit.xml: Updated the PHPUnit configuration file with new settings and environment variables.