Open tortuetorche opened 10 years ago
Also there's a typo on http://anahkiasen.github.io/underscore-php/#Arrays within the throttle code example. Should be "Functions::throttle" instead of "Functions::only".
PRs accepted if you want to push a fix quickly
If you update the
Functions::throttle()
test like this (replacesleep(1);
bysleep(2);
:PHPUnit returns:
Failed asserting that 3 matches expected 2.
Or if you update the test like this (add a
$this->assertEquals(1, $number);
assertion):PHPUnit returns:
Failed asserting that 2 matches expected 1.