drupol/phpspec-annotation

This package is abandoned and no longer maintained. No replacement package was suggested.

PHPSpec extension that allows you to use annotated methods for tests.

Maintainers

👁 drupol

Package info

github.com/drupol/phpspec-annotation

pkg:composer/drupol/phpspec-annotation

Statistics

Installs: 24 541

Dependents: 4

Suggesters: 0

Stars: 2

Open Issues: 0

1.2.0 2018-08-20 11:31 UTC

Requires

  • php: >= 5.6

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 542476ab892e04776e1c4a1a3cb1143aa5e0ac94

  • Pol Dellaiera <pol.dellaiera.woop@protonmail.com>

This package is auto-updated.

Last update: 2022-03-21 10:52:25 UTC


README

A PHPSpec extension that allows you to use annotated methods for tests.

Installation

composer require drupol/phpspec-annotation --dev

Usage

Enable extension in phpspec.yml (or phpspec.yml.dist) file:

extensions:
 drupol\PhpspecAnnotation\PhpspecAnnotation: ~

Then, you can use the annotation @name in the documentation block of your spec methods.

Example, instead of writing:

public function it_can_read_an_xml_file_with_specific_settings() {
 // test code here
}

You can now write:

/**
 * @name It can read an xml file with specific settings.
 */
public function readXmlFile() {
 // test code here
}

Contributing

Feel free to contribute to this library by sending Github pull requests. I'm quite reactive :-)