tests/GameOfLife/Outputs/VideoOutputTest.php
/**
     * Checks whether an empty frames folder is succesfully detected.
     *
     * @covers \Output\VideoOutput::finishOutput()
     * @covers \Output\VideoOutput::generateVideoFile()
     *
     * @throws \Exception
     */
Checks whether an empty frames folder is succesfully detected.

@throws \Exception
Checks whether an empty frames folder is succesfully detected . @throws \ Exception
public function testDetectsEmptyFramesFolder()
    {
        $this->expectOutputRegex("/.*/");
        $exceptionOccurred = false;
        try
        {
            $this->output->finishOutput("test");
        }
        catch (\Exception $_exception)
        {
            $exceptionOccurred = true;
            $this->assertEquals("No frames in frames folder found.", $_exception->getMessage());
        }
        $this->assertTrue($exceptionOccurred);
    }
public function testDetectsEmptyFramesFolder ( ) { $ this -> expectOutputRegex ( " /.*/ " ) ; $ exceptionOccurred = false ; try { $ this -> output -> finishOutput ( " test " ) ; } catch ( \ Exception $ _exception ) { $ exceptionOccurred = true ; $ this -> assertEquals ( " No frames in frames folder found. " , $ _exception -> getMessage ( ) ) ; } $ this -> assertTrue ( $ exceptionOccurred ) ; }
Checks whether an empty frames folder is succesfully detected.
Checks whether an empty frames folder is succesfully detected .
// Hide output