tests/GameOfLife/Outputs/ImageOutputTest.php
/**
     * @dataProvider constructionProvider
     * @covers \Output\ImageOutput::setBaseOutputDirectory()
     * @covers \Output\ImageOutput::baseOutputDirectory()
     * @covers \Output\ImageOutput::fileSystemHandler()
     * @covers \Output\ImageOutput::setFileSystemHandler()
     * @covers \Output\ImageOutput::imageCreator()
     * @covers \Output\ImageOutput::setImageCreator()
     * @covers \Output\ImageOutput::imageOutputDirectory()
     * @covers \Output\ImageOutput::setImageOutputDirectory()
     * @covers \Output\ImageOutput::optionPrefix()
     * @covers \Output\ImageOutput::setOptionPrefix()
     *
     * @param string $_optionPrefix              Prefix of the image output
     * @param string $_imageOutputDirectory      Output directory of the image output
     */


@param string $_optionPrefix              Prefix of the image output
@param string $_imageOutputDirectory      Output directory of the image output
@param string $_optionPrefix Prefix of the image output @param string $_imageOutputDirectory Output directory of the image output
public function testCanSetAttributes($_imageOutputDirectory, $_optionPrefix)
    {
        $fileSystemHandler = new FileSystemWriter();
        $colorBlack = new ImageColor(0, 0, 0);
        $imageCreator = new ImageCreator(1,2,1, $colorBlack, $colorBlack, $colorBlack);
        $this->output->setBaseOutputDirectory("hello");
        $this->output->setFileSystemHandler($fileSystemHandler);
        $this->output->setImageCreator($imageCreator);
        $this->output->setImageOutputDirectory($_imageOutputDirectory);
        $this->output->setOptionPrefix($_optionPrefix);
        $this->assertEquals("hello", $this->output->baseOutputDirectory());
        $this->assertEquals($fileSystemHandler, $this->output->fileSystemHandler());
        $this->assertEquals($imageCreator, $this->output->imageCreator());
        $this->assertEquals($_imageOutputDirectory, $this->output->imageOutputDirectory());
        $this->assertEquals($_optionPrefix, $this->output->optionPrefix());
    }
public function testCanSetAttributes ( $ _imageOutputDirectory , $ _optionPrefix ) { $ fileSystemHandler = new FileSystemWriter ( ) ; $ colorBlack = new ImageColor ( 0 , 0 , 0 ) ; $ imageCreator = new ImageCreator ( 1 , 2 , 1 , $ colorBlack , $ colorBlack , $ colorBlack ) ; $ this -> output -> setBaseOutputDirectory ( " hello " ) ; $ this -> output -> setFileSystemHandler ( $ fileSystemHandler ) ; $ this -> output -> setImageCreator ( $ imageCreator ) ; $ this -> output -> setImageOutputDirectory ( $ _imageOutputDirectory ) ; $ this -> output -> setOptionPrefix ( $ _optionPrefix ) ; $ this -> assertEquals ( " hello " , $ this -> output -> baseOutputDirectory ( ) ) ; $ this -> assertEquals ( $ fileSystemHandler , $ this -> output -> fileSystemHandler ( ) ) ; $ this -> assertEquals ( $ imageCreator , $ this -> output -> imageCreator ( ) ) ; $ this -> assertEquals ( $ _imageOutputDirectory , $ this -> output -> imageOutputDirectory ( ) ) ; $ this -> assertEquals ( $ _optionPrefix , $ this -> output -> optionPrefix ( ) ) ; }
@dataProvider constructionProvider
 @covers \Output\ImageOutput::setBaseOutputDirectory()
 @covers \Output\ImageOutput::baseOutputDirectory()
 @covers \Output\ImageOutput::fileSystemHandler()
 @covers \Output\ImageOutput::setFileSystemHandler()
 @covers \Output\ImageOutput::imageCreator()
 @covers \Output\ImageOutput::setImageCreator()
 @covers \Output\ImageOutput::imageOutputDirectory()
 @covers \Output\ImageOutput::setImageOutputDirectory()
 @covers \Output\ImageOutput::optionPrefix()
 @covers \Output\ImageOutput::setOptionPrefix()
@dataProvider constructionProvider @covers \ Output \ ImageOutput :: setBaseOutputDirectory () @covers \ Output \ ImageOutput :: baseOutputDirectory () @covers \ Output \ ImageOutput :: fileSystemHandler () @covers \ Output \ ImageOutput :: setFileSystemHandler () @covers \ Output \ ImageOutput :: imageCreator () @covers \ Output \ ImageOutput :: setImageCreator () @covers \ Output \ ImageOutput :: imageOutputDirectory () @covers \ Output \ ImageOutput :: setImageOutputDirectory () @covers \ Output \ ImageOutput :: optionPrefix () @covers \ Output \ ImageOutput :: setOptionPrefix ()