describe("Math.max", function() { it("should return biggest number", function() { expect(Math.max(1,2)).toEqual(2); }); });
<?php namespace app\tests; use app\lib\Math; class MathTest extends \lithium\test\Unit { public function testMax() { $result = Math::max([1, 2]); $this->assertEqual(2, $result); } }
By Warren Seymour
A BDD Framework for PHP