brickx / pest-plugin-money
A Pest plugin to work with popular money libraries
Fund package maintenance!
Keysaw
Requires
- php: ^8.1
- pestphp/pest: ^2.0
- pestphp/pest-plugin: ^2.0
Requires (Dev)
- archtechx/money: ^0.5
- brick/money: ^0.8
- moneyphp/money: ^4.1
- pestphp/pest-dev-tools: ^2.4
Suggests
- archtechx/money: A Laravel library for handling money
- brick/money: A powerful, immutable money library with support for specialized currencies
- moneyphp/money: A simpler but less versatile money library
README
This package is a plugin for Pest PHP.
It provides useful expectations for testing monetary values, provided by popular libraries like brick/money, moneyphp/money and archtechx/money.
It is heavily inspired by Luke Downing's plugin, but was updated and tweaked for Pest 2.0. Please check out the original repository!
Installation
To get started, install the plugin using composer:
composer require brickx/pest-plugin-money --dev
This package requires the following:
- Pest PHP
- Either the Brick Money, MoneyPHP or Archtech Money libraries
- PHP 7.3 or greater
Usage
Nothing yet!
Contact
Created by Keysaw.