tests/GameOfLife/Inputs/UserInputTest.php
/**
     * Checks whether the Getopt options are set correctly.
     *
     * @covers \Input\UserInput::addOptions()
     * @covers \Input\UserInput::__construct()
     */
Checks whether the Getopt options are set correctly.
Checks whether the Getopt options are set correctly .
public function testCanAddOptions()
    {
        $userInputOptions = array(
            array(null, "edit", Getopt::NO_ARGUMENT, "UserInput - Edit a template\n")
        );
        $this->optionsMock->expects($this->exactly(1))
                          ->method("addOptions")
                          ->with($userInputOptions);
        if ($this->optionsMock instanceof Getopt) $this->input->addOptions($this->optionsMock);
    }
public function testCanAddOptions ( ) { $ userInputOptions = array ( array ( null , " edit " , Getopt :: NO_ARGUMENT , " UserInput - Edit a template \n " ) ) ; $ this -> optionsMock -> expects ( $ this -> exactly ( 1 ) ) -> method ( " addOptions " ) -> with ( $ userInputOptions ) ; if ( $ this -> optionsMock instanceof Getopt ) $ this -> input -> addOptions ( $ this -> optionsMock ) ; }
Checks whether the Getopt options are set correctly.
Checks whether the Getopt options are set correctly .