Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Sep 18, 2023. It is now read-only.

thumbtack/jafar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jafar

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.

About

Behavior-driven testing for PHP (like Jasmine)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published