peridot-php / peridot

Event driven BDD test framework for PHP
http://peridot-php.github.io/
MIT License
328 stars 27 forks source link

Support definition arguments #136

Closed brianium closed 9 years ago

brianium commented 9 years ago

TestInterface supports setting arguments to be called with test definitions via getDefinitionArguments and setDefinitionArguments. This should be useful for passing arguments to test or suite definitions via plugins.

Since suites generally execute early to build test trees, a new suite.define event has been added, and listeners receive the suite that has just been defined. This event is where to hook in for setting suite definition arguments.

For instances of Test - the classic test.run event can be used for the same purpose.

Fixes #134

coveralls commented 9 years ago

Coverage Status

Coverage increased (+1.12%) to 96.19% when pulling 741fd96b47234425773ff9634f1953b2a65cd8c1 on brianium:feature/definition-arguments into 586e10d384cca9805461a4dcd4aae0a2e89c2c5f on peridot-php:master.

coveralls commented 9 years ago

Coverage Status

Coverage increased (+1.12%) to 96.19% when pulling 741fd96b47234425773ff9634f1953b2a65cd8c1 on brianium:feature/definition-arguments into 586e10d384cca9805461a4dcd4aae0a2e89c2c5f on peridot-php:master.