tests/GameOfLife/Inputs/BoardEditor/Options/SetHeightOptionTest.php
/**
     * Checks whether the constructor works as expected.
     *
     * @covers \BoardEditor\Options\SetHeightOption::__construct()
     *
     * @throws \Exception
     */
Checks whether the constructor works as expected.

@throws \Exception
Checks whether the constructor works as expected . @throws \ Exception
public function testCanBeConstructed()
    {
        $boardEditor = new BoardEditor("test");
        $option = new SetHeightOption($boardEditor);
        $this->assertEquals("height", $option->name());
        $this->assertEquals("setHeight", $option->callback());
        $this->assertEquals("Sets the board height", $option->description());
        $this->assertEquals(1, $option->getNumberOfArguments());
        $this->assertEquals($boardEditor, $option->parentBoardEditor());
    }
public function testCanBeConstructed ( ) { $ boardEditor = new BoardEditor ( " test " ) ; $ option = new SetHeightOption ( $ boardEditor ) ; $ this -> assertEquals ( " height " , $ option -> name ( ) ) ; $ this -> assertEquals ( " setHeight " , $ option -> callback ( ) ) ; $ this -> assertEquals ( " Sets the board height " , $ option -> description ( ) ) ; $ this -> assertEquals ( 1 , $ option -> getNumberOfArguments ( ) ) ; $ this -> assertEquals ( $ boardEditor , $ option -> parentBoardEditor ( ) ) ; }
Checks whether the constructor works as expected.
Checks whether the constructor works as expected .