public function testTimes()
 {
     // from js
     $vals = array();
     __::times(3, function ($i) use(&$vals) {
         $vals[] = $i;
     });
     $this->assertEquals(array(0, 1, 2), $vals, 'is 0 indexed');
     // docs
     $result = '';
     __::times(3, function () use(&$result) {
         $result .= 'a';
     });
     $this->assertEquals('aaa', $result);
 }