Skip to content

Instantly share code, notes, and snippets.

@ludofleury
Created March 30, 2012 17:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ludofleury/2253007 to your computer and use it in GitHub Desktop.
Save ludofleury/2253007 to your computer and use it in GitHub Desktop.
Atoum asserters vs PHPUnit asserters
<?php
// Atoum asserters
$this->assert
->integer(150)
->isGreaterThan(100)
->isLowerThanOrEqualTo(200);
// PHPunit asserters
$this->assertInternalType('int', 150);
$this->assertGreaterThan(100, 150);
$this->assertLessThanOrEqual(200, 150);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment