tests/GameOfLife/Outputs/ConsoleOutputTest.php
/**
     * Checks whether the constructor works as expected.
     *
     * @covers \Output\ConsoleOutput::__construct()
     *
     * @throws ReflectionException
     */
Checks whether the constructor works as expected.


Checks whether the constructor works as expected .
public function testCanBeConstructed()
    {
        $output = new ConsoleOutput();
        $reflectionClass = new ReflectionClass(\Output\ConsoleOutput::class);
        $reflectionProperty = $reflectionClass->getProperty("shellOutputHelper");
        $reflectionProperty->setAccessible(true);
        $this->assertInstanceOf(\Utils\Shell\ShellOutputHelper::class, $reflectionProperty->getValue($output));
    }
public function testCanBeConstructed ( ) { $ output = new ConsoleOutput ( ) ; $ reflectionClass = new ReflectionClass ( \ Output \ ConsoleOutput :: class ) ; $ reflectionProperty = $ reflectionClass -> getProperty ( " shellOutputHelper " ) ; $ reflectionProperty -> setAccessible ( true ) ; $ this -> assertInstanceOf ( \ Utils \ Shell \ ShellOutputHelper :: class , $ reflectionProperty -> getValue ( $ output ) ) ; }
Checks whether the constructor works as expected.
Checks whether the constructor works as expected .