Created
November 16, 2012 23:56
-
-
Save bayleedev/4092025 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace app\tests\cases\controllers; | |
class AssertTest extends \lithium\test\Unit { | |
public function testSomething() { | |
$this->assert(true, 'this is true'); // true | |
$this->assertCount(10, array(1)); // false | |
} | |
public function assertCount($expected, $array, $message = '{:message}') { | |
$this->assert($expected === ($result = count($array)), $message, compact('expected', 'result')); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment