tests/GameOfLife/Inputs/BoardEditor/Options/HelpOptionTest.php
/**
     * Checks whether the constructor works as expected.
     *
     * @covers \BoardEditor\Options\HelpOption::__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 HelpOption($boardEditor);
        $this->assertEquals("help", $option->name());
        $this->assertEquals("displayHelp", $option->callback());
        $this->assertEquals("Display help", $option->description());
        $this->assertEquals(0, $option->getNumberOfArguments());
        $this->assertEquals($boardEditor, $option->parentBoardEditor());
    }
public function testCanBeConstructed ( ) { $ boardEditor = new BoardEditor ( " test " ) ; $ option = new HelpOption ( $ boardEditor ) ; $ this -> assertEquals ( " help " , $ option -> name ( ) ) ; $ this -> assertEquals ( " displayHelp " , $ option -> callback ( ) ) ; $ this -> assertEquals ( " Display help " , $ option -> description ( ) ) ; $ this -> assertEquals ( 0 , $ option -> getNumberOfArguments ( ) ) ; $ this -> assertEquals ( $ boardEditor , $ option -> parentBoardEditor ( ) ) ; }
Checks whether the constructor works as expected.
Checks whether the constructor works as expected .