Skip to content

bafor/phpspec-moneyphp-matchers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PhpSpec Matchers for the phpmoney/money

Add matchers for Money\Money class

Installation

composer require bafor/phpspec-moneyphp-matchers

Add the following definition to your phpspec.yml

extensions:
    Bafor\MoneySpecMatchers\Extension: ~
   

Usage

This package add matchers to compare objects of type Money\Money (amount and currency):

  • shouldReturn | shouldNotReturn
  • shouldBe | shouldNotBe
  • shouldEqual | shouldNotEqaul
  • shouldBeEqualTo | shouldNotBeEqualTo

About

Phpspec matchers for phpmoney/money

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages