Go to file
2024-06-16 14:10:22 +02:00
src align copyright header 2024-06-16 13:53:57 +02:00
Tests replace deprecated PHPUnit code 2024-06-16 14:10:22 +02:00
.gitignore initial 2022-11-15 14:12:43 +01:00
.php-cs-fixer.php align copyright header 2024-06-16 13:53:57 +02:00
CHANGELOG.md Initial commit 2022-11-11 12:21:10 +01:00
composer.json align PHPUnit configuration 2024-06-16 13:49:57 +02:00
LICENSE.md Initial commit 2022-11-11 12:21:10 +01:00
phpstan.neon drop PHP 7 support 2024-02-01 08:40:38 +01:00
phpunit.xml replace deprecated PHPUnit code 2024-06-16 14:10:22 +02:00
README.en.md initial 2022-11-15 14:12:43 +01:00
README.md initial 2022-11-15 14:12:43 +01:00

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.