tests/GameOfLife/Rules/Two45RuleTest.php
/**
     * Checks whether the birth and death rules are correctly set.
     */
Checks whether the birth and death rules are correctly set.
Checks whether the birth and death rules are correctly set .
public function testCanBeConstructed()
    {
        $rule = new Two45Rule();
        $this->assertEquals(array(4, 5), $rule->rulesBirth());
        $this->assertEquals(array(2), $rule->rulesStayAlive());
    }
public function testCanBeConstructed ( ) { $ rule = new Two45Rule ( ) ; $ this -> assertEquals ( array ( 4 , 5 ) , $ rule -> rulesBirth ( ) ) ; $ this -> assertEquals ( array ( 2 ) , $ rule -> rulesStayAlive ( ) ) ; }
Checks whether the birth and death rules are correctly set.
Checks whether the birth and death rules are correctly set .