tests/GameOfLife/Inputs/BoardEditor/OptionHandler/BoardEditorOptionHandlerTest.php
/**
     * Checks whether the constructor works as expected.
     *
     * @covers \BoardEditor\OptionHandler\BoardEditorOptionHandler::__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("testing");
        $optionHandler = new BoardEditorOptionHandler($boardEditor);
        $this->assertEquals($boardEditor, $optionHandler->parentBoardEditor());
        $this->assertEquals(new BoardEditorOptionLoader($optionHandler), $optionHandler->optionLoader());
        $this->assertEquals(new BoardEditorOptionParser($optionHandler), $optionHandler->optionParser());
        $this->assertTrue(is_array($optionHandler->options()));
        $this->assertGreaterThan(0, count($optionHandler->options()));
    }
public function testCanBeConstructed ( ) { $ boardEditor = new BoardEditor ( " testing " ) ; $ optionHandler = new BoardEditorOptionHandler ( $ boardEditor ) ; $ this -> assertEquals ( $ boardEditor , $ optionHandler -> parentBoardEditor ( ) ) ; $ this -> assertEquals ( new BoardEditorOptionLoader ( $ optionHandler ) , $ optionHandler -> optionLoader ( ) ) ; $ this -> assertEquals ( new BoardEditorOptionParser ( $ optionHandler ) , $ optionHandler -> optionParser ( ) ) ; $ this -> assertTrue ( is_array ( $ optionHandler -> options ( ) ) ) ; $ this -> assertGreaterThan ( 0 , count ( $ optionHandler -> options ( ) ) ) ; }
Checks whether the constructor works as expected.
Checks whether the constructor works as expected .