assertSame(0, yield discard(Stream\fromIterable([]))); } public function testCount(): \Generator { $this->assertSame(3, yield discard(Stream\fromIterable(['a', 1, false], 1))); } }