Install this package as a development dependency in your project:
$ composer require --dev friends-of-phpspec/phpspec-expect
Inside some example:
expect(file_exists('dummy.txt'))->toBe(true);
phpspec-expect | PHP | phpspec |
---|---|---|
2.x | >=5.6 |
^3.0 |
3.0.x | >=7.0 |
^4.0 |
3.1.x | ^7.1 |
^5.0 || ^6.0 |
4.x | >=7.3 |
^6.0 || ^7.0 |
Copyright (c) 2017-2020 BossaConsulting (https://github.com/BossaConsulting/phpspec2-expect).
Licensed under MIT License.