/** * @test * * So this test is skipped, because compensate doesn't work. Need to * think up a way of doing this without effective keeping the whole * window in memory. */ public function compensateRemovesNumber() { $this->markTestIncomplete(); return; $max = new Max(); $max->init(); $max->accumulate(1); $max->accumulate(5); $max->compensate(5); $this->assertEquals(1, $max->emit()); }