thumbtack / jafar
This package is abandoned and no longer maintained.
No replacement package was suggested.
Behavior-driven testing for PHP. Similar to Jasmine.
dev-master
2014-06-03 23:49 UTC
Requires
- php: ~5.4
This package is not auto-updated.
Last update: 2023-09-30 10:19:07 UTC
README
Jafar is a behavior testing toolkit for PHP, like Jasmine is for JavaScript.
Usage
<?php require_once 'jafar.php'; describe('Exception', function() { it('has a message', function() { $message = 'Oops!'; expect(new \Exception($message)->getMessage())->toBe($message); }); it('can be thrown', function() { expect('RuntimeException')->toBeThrownFrom(function() { throw new RuntimeException(); }); }); });
License
Jafar is distributed under the terms of the 3-clause BSD license. See COPYING.