Go to file
2022-11-11 12:21:10 +01:00
.php-cs-fixer.php Initial commit 2022-11-11 12:21:10 +01:00
CHANGELOG.md Initial commit 2022-11-11 12:21:10 +01:00
composer.json Initial commit 2022-11-11 12:21:10 +01:00
LICENSE.md Initial commit 2022-11-11 12:21:10 +01:00
phpstan.neon Initial commit 2022-11-11 12:21:10 +01:00
phpunit.xml Initial commit 2022-11-11 12:21:10 +01:00
README.en.md Initial commit 2022-11-11 12:21:10 +01:00
README.md Initial commit 2022-11-11 12:21:10 +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.

  • contains methods for the production code and prepared methods for own tests to validate the production code

  • Production\IsMockable: contains methods for mocking parent calls

  • Development\IsMockable: contains test code for Production\IsMockable.

  • Development\IsTestable: 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.