tests/GameOfLife/GameLogicTest.php
/**
     * Checks whether the constructor sets the attributes as expected.
     *
     * @covers \GameOfLife\GameLogic::__construct()
     * @covers \GameOfLife\GameLogic::rule()
     */
Checks whether the constructor sets the attributes as expected.
Checks whether the constructor sets the attributes as expected .
public function testCanBeConstructed()
    {
        $rule = new ConwayRule();
        $gameLogic = new GameLogic($rule);
        $this->assertEquals($rule, $gameLogic->rule());
    }
public function testCanBeConstructed ( ) { $ rule = new ConwayRule ( ) ; $ gameLogic = new GameLogic ( $ rule ) ; $ this -> assertEquals ( $ rule , $ gameLogic -> rule ( ) ) ; }
Checks whether the constructor sets the attributes as expected.
Checks whether the constructor sets the attributes as expected .