/** * @test */ public function runTheWorld() { $iterations = $this->iterations; $input = array_shift($iterations); $cellManager = new CellManager(5); $world = new World($cellManager); foreach ($iterations as $expected) { $actual = $world->iteration($this->cleanArray($input)); $this->assertEquals($this->cleanArray($expected), $actual); $input = $expected; } }