public function testMapToInt() { $stream = new S\Stream(array(1, 2, 3, 4, 1, 2, 3, 4, 1, 2, 3, 4, 1, 2, 3, 4)); $newStream = $stream->mapToInt(function ($item) { return $item; }); $this->assertInstanceOf('Streams\\IntStream', $newStream); }