nico-vromans/phpspec-matchers

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

Extension for PhpSpec with additional custom Matchers.

Installs: 1 759

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Type:phpspec-extension

1.0.1 2022-03-30 11:39 UTC

This package is auto-updated.

Last update: 2022-03-30 11:51:11 UTC


README

Installation

Simply install via Composer:

composer require nico-vromans/phpspec-matchers

After that, add the extension to you phpspec.yml:

extensions:
    NicoVromans\PhpSpecMatchers\Extension: ~

Matchers and how to use them

beFinal()

This checks if the tested class is a final class.

To test if a class is final:

$this->shouldBeFinal();

or if a class is not final:

$this->shouldNotBeFinal();

Extra info

For more info on custom extensions, check out PhpSpec's Extensions manual. For some more examples look at the Example extensions section.

License

GNU General Public License v3.0, check LICENSE for more information.