Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 574 Bytes

PHPUnit.md

File metadata and controls

15 lines (12 loc) · 574 Bytes

PHP Unit

PHPUnit is a unit testing framework for the PHP programming language. It is instance of the xUnit architecture which originated with SUnit and was popularised by JUnit -- source.

Asserts

  • assertEquals ($val1, $val2, $delta, $message)
  • assertFalse ($expression, $message)
  • assertTrue ($expression, $message)
  • assertNotNull ($val, $message)
  • assertSame ($val1, $val2, $message) # must be references to same object
  • assertNotSame ($val1, $val2, $message)

Written by Stephen Moon ([email protected]), 2016