tests/GameOfLife/Rules/CopyRuleTest.php
/**
     * Checks whether the birth and stay alive rules are correctly set.
     */
Checks whether the birth and stay alive rules are correctly set.
Checks whether the birth and stay alive rules are correctly set .
public function testCanBeConstructed()
    {
        $rule = new CopyRule();
        $this->assertEquals(array(1, 3, 5, 7), $rule->rulesBirth());
        $this->assertEquals(array(1, 3, 5, 7), $rule->rulesStayAlive());
    }
public function testCanBeConstructed ( ) { $ rule = new CopyRule ( ) ; $ this -> assertEquals ( array ( 1 , 3 , 5 , 7 ) , $ rule -> rulesBirth ( ) ) ; $ this -> assertEquals ( array ( 1 , 3 , 5 , 7 ) , $ rule -> rulesStayAlive ( ) ) ; }
Checks whether the birth and stay alive rules are correctly set.
Checks whether the birth and stay alive rules are correctly set .