2017 © Pedro Peláez
 

library iexpect

A very small unit test library

image

tigrez/iexpect

A very small unit test library

  • Saturday, December 10, 2016
  • by LucGeritz
  • Repository
  • 1 Watchers
  • 1 Stars
  • 10 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

I Expect

IExpect is a small unit test library for use in PHP. It's syntax is intuitive., (*1)

The assertion, (*2)

I expect 3 * 2 to equal 6, (*3)

can be put to the test with, (*4)

$I->expect(3*2)->equals(6);, (*5)

How nice is that.., (*6)

equals can be other things as well.. contains, hasKey (talking arrays here) and more., (*7)

More the negative type? How about $I->expect(1+1)->not()->equals(3)., (*8)

While I'm still working at the documentation please refer to the source of the Expectation class what more it can do. In the demo folder you can find very useful examples as well., (*9)

You want more checks? It's easy to extend the Expectation class., (*10)

I don't Expect..

..you to expect is has the same functionality like say PHPUnit. If it did it wouldn't be small now would it? So don't expect mocks, stubs and things like that, or being able to test exceptions thrown., (*11)

The Versions

10/12 2016

dev-master

9999999-dev https://github.com/LucGeritz/IExpect

A very small unit test library

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Luc Geritz

test unit test

04/12 2016

1.1.2

1.1.2.0 https://github.com/LucGeritz/IExpect

A very small unit test library

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Luc Geritz

test unit test

03/12 2016

1.1

1.1.0.0 https://github.com/LucGeritz/IExpect

A very small unit test library

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Luc Geritz

test unit test