Skip to content

Instantly share code, notes, and snippets.

@mhetreramesh
Created January 8, 2018 06:14
Show Gist options
  • Save mhetreramesh/24583bae10ed2145c3c9b891174344c8 to your computer and use it in GitHub Desktop.
Save mhetreramesh/24583bae10ed2145c3c9b891174344c8 to your computer and use it in GitHub Desktop.
phpunit-cheat-sheet

PHPUnit API reference

  • version 3.6

TODO

Check those constraints:

$this->anything()
$this->contains($value)
$this->arrayHasKey($key)
$this->equalTo($value, $delta, $maxDepth)
$this->classHasAttribute($attribute)
$this->greaterThan($value)
$this->isInstanceOf($className)
$this->isType($type)
$this->matchesRegularExpression($pattern)
$this->stringContains($string, $case)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment