Skip to content

BackEndTea/EasyTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Easy Test

Build Status

Easy test is a small php test framework.

Usage

<?php

use function EasyTest\afterEach;
use function EasyTest\beforeEach;
use function EasyTest\describe;
use function EasyTest\expect;
use function EasyTest\it;

describe('MyClass', function () {

  beforeEach(function () {
      // set up;
  });

  afterEach(function () {
      // clean up
  });

  it('should equal something', function () {
    expect(10)->toEqual(10);
  });
  it('should fail if it is not equal', function () {
    expect(12)->toEqual(12);
  });
});

Why

I wanted to make this, mostly to see if it would be hard to write a test framework like this in PHP.

About

Easy testing for PHP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published