Skip to content

Example of how to run tests on other peoples code (based on a fixed Interface).

License

Notifications You must be signed in to change notification settings

potherca-blog/example-phpunit-external-code-tester

Repository files navigation

Project Stage Badge: Experimental

Introduction

During a discussion at work this week, the question arose how to test code written by another developer against a given Interface.

This repository offers an example of one way of how this could be achieved.

Uhm, say what?

There is a Hello class (as an example) and there is a HelloTest class.

The Hello classs implements a HelloInterface. The tests should be written against the interface.

The idea is to give developers the interface and ask them to implement the class, including tests.

When they are content, we receive the class and run our tests against their class.

This is done by locating the the class in a given location and pulling the class into the test.

Contact

To report bugs, feature requests or other issues: find me on twitter

License

This project has been licensed under GPL-3.0+ License (GNU General Public License v3.0 or higher).

About

Example of how to run tests on other peoples code (based on a fixed Interface).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages