tests/GameOfLife/Inputs/TemplateInputTest.php
/**
     * Checks whether the constructor works as expected.
     *
     * @covers \Input\TemplateInput::__construct()
     *
     * @throws \Exception
     */
Checks whether the constructor works as expected.

@throws \Exception
Checks whether the constructor works as expected . @throws \ Exception
public function testCanBeConstructed()
    {
        $input = new TemplateInput();
        $reflectionClass = new ReflectionClass(\Input\TemplateInput::class);
        $reflectionProperty = $reflectionClass->getProperty("templateLoader");
        $reflectionProperty->setAccessible(true);
        $this->assertInstanceOf(TemplateLoader::class, $reflectionProperty->getValue($input));
        $reflectionProperty = $reflectionClass->getProperty("templatePlacer");
        $reflectionProperty->setAccessible(true);
        $this->assertInstanceOf(FieldsPlacer::class, $reflectionProperty->getValue($input));
    }
public function testCanBeConstructed ( ) { $ input = new TemplateInput ( ) ; $ reflectionClass = new ReflectionClass ( \ Input \ TemplateInput :: class ) ; $ reflectionProperty = $ reflectionClass -> getProperty ( " templateLoader " ) ; $ reflectionProperty -> setAccessible ( true ) ; $ this -> assertInstanceOf ( TemplateLoader :: class , $ reflectionProperty -> getValue ( $ input ) ) ; $ reflectionProperty = $ reflectionClass -> getProperty ( " templatePlacer " ) ; $ reflectionProperty -> setAccessible ( true ) ; $ this -> assertInstanceOf ( FieldsPlacer :: class , $ reflectionProperty -> getValue ( $ input ) ) ; }
Checks whether the constructor works as expected.
Checks whether the constructor works as expected .