friends-of-phpspec / phpspec-expect
Helper that decorates any SUS with a phpspec lazy object wrapper
Installs: 315 774
Dependents: 27
Suggesters: 0
Security: 0
Stars: 4
Watchers: 1
Forks: 34
Open Issues: 0
Requires
- php: >=8.1
- phpspec/phpspec: ^6.0 || ^7.0 || ^8.0
Requires (Dev)
- phpunit/phpunit: ^10.0 || ^11.0 || ^12.0
- squizlabs/php_codesniffer: ^3.5
README
phpspec-expect
Install
Install this package as a development dependency in your project:
$ composer require --dev friends-of-phpspec/phpspec-expect
Usage
Inside some example:
expect(file_exists('dummy.txt'))->toBe(true);
Compatibility
phpspec-expect | PHP | phpspec |
---|---|---|
3.0.x | >=7.0 |
^4.0 |
3.1.x | ^7.1 |
^5.0 || ^6.0 |
4.0.x | >=7.3 |
^6.0 || ^7.0 |
4.1.x | >=8.1 |
^7.0 || ^8.0 |
Authors
Copyright (c) 2017-2020 BossaConsulting (https://github.com/BossaConsulting/phpspec2-expect).
License
Licensed under MIT License.