Clinner\Command\Tests\CommandTest::testConstructorDefaults PHP Метод

testConstructorDefaults() публичный Метод

    public function testConstructorDefaults()
    {
        $name = 'some-command';
        $command = $this->getMockBuilder('\\Clinner\\Command\\Command')->disableOriginalConstructor()->setMethods(array('setName', 'setArguments', 'setOptions'))->getMock();
        $command->expects($this->once())->method('setName')->with($this->equalTo($name))->will($this->returnSelf());
        $command->expects($this->once())->method('setArguments')->with($this->equalTo(array()))->will($this->returnSelf());
        $command->expects($this->once())->method('setOptions')->with($this->equalTo(array()))->will($this->returnSelf());
        $command->__construct($name);
    }