Go to file
Daniel Seifert be4daabc48
drop PHP 7 support
# Conflicts:
#	Tests/Unit/Production/IsMockableTest.php
2024-02-01 08:40:38 +01:00
Tests drop PHP 7 support 2024-02-01 08:40:38 +01:00
src drop PHP 7 support 2024-02-01 08:40:38 +01:00
.gitignore initial 2022-11-15 14:12:43 +01:00
.php-cs-fixer.php initial 2022-11-15 14:12:43 +01:00
CHANGELOG.md Initial commit 2022-11-11 12:21:10 +01:00
LICENSE.md Initial commit 2022-11-11 12:21:10 +01:00
README.en.md initial 2022-11-15 14:12:43 +01:00
README.md initial 2022-11-15 14:12:43 +01:00
composer.json drop PHP 7 support 2024-02-01 08:40:38 +01:00
phpstan.neon drop PHP 7 support 2024-02-01 08:40:38 +01:00
phpunit.xml initial 2022-11-15 14:12:43 +01:00

README.en.md

deutsche Version english version

Tools for better testable code

This package provides tools to circumvent difficulties when testing plug-in code from customisable frameworks (e.g. shop software).

  • method bundles can be included as traits depending on the class.

  • Production\IsMockable: contains methods for mocking parent calls

  • Development\CanAccessRestricted: contains methods for better accessibility of protected code

Table of content

Installation

This package requires a project installed with Composer.

Open a command line and navigate to the root directory of the installation. Execute the following command. Adapt the path details to your installation environment.

php composer require d3/testingtools:^1.0

How to use

Include the respective trait in your class and use the desired method in your code:

use \D3\TestingTools\Production\IsMockable;

Changelog

See CHANGELOG for further informations.

Contributing

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue. Don't forget to give the project a star! Thanks again!

  • Fork the Project
  • Create your Feature Branch (git checkout -b feature/AmazingFeature)
  • Commit your Changes (git commit -m 'Add some AmazingFeature')
  • Push to the Branch (git push origin feature/AmazingFeature)
  • Open a Pull Request

License

(status: 2022-11-11)

Distributed under the MIT license.

Copyright (c) D3 Data Development (Inh. Thomas Dartsch)

For full copyright and licensing information, please see the LICENSE file distributed with this source code.