Exemplo n.º 1
0
 public function testAllMatch()
 {
     $stream = new S\Stream(array(2, 4, 6, 8));
     $result = $stream->allMatch(function ($item) {
         return !($item % 2);
     });
     $this->assertEquals(true, $result);
 }