tests/GameOfLife/Outputs/ConsoleOutputTest.php
/**
     * Checks whether the output can be finished as expected.
     *
     * @covers \Output\BaseOutput::finishOutput()
     */
Checks whether the output can be finished as expected.
Checks whether the output can be finished as expected .
public function testCanFinishOutput()
    {
        $this->expectOutputRegex("/.*Simulation finished: All cells are dead\..*/");
        $this->output->finishOutput("All cells are dead");
    }
public function testCanFinishOutput ( ) { $ this -> expectOutputRegex ( " /.*Simulation finished: All cells are dead\..*/ " ) ; $ this -> output -> finishOutput ( " All cells are dead " ) ; }
Checks whether the output can be finished as expected.
Checks whether the output can be finished as expected .