Thanks to visit codestin.com
Credit goes to github.com

Skip to content

nico-vromans/phpspec-matchers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PhpSpec extension that adds custom Matchers

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.

About

Custom additional PhpSpec Matchers

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages