BrowscapPHPTest\Command\ConvertCommandTest::testConfigure PHP Method

testConfigure() public method

public testConfigure ( )
    public function testConfigure()
    {
        $object = $this->getMockBuilder(\BrowscapPHP\Command\ConvertCommand::class)->disableOriginalConstructor()->setMethods(['setName', 'setDescription', 'addArgument', 'addOption'])->getMock();
        $object->expects(self::once())->method('setName')->will(self::returnSelf());
        $object->expects(self::once())->method('setDescription')->will(self::returnSelf());
        $object->expects(self::once())->method('addArgument')->will(self::returnSelf());
        $object->expects(self::exactly(2))->method('addOption')->will(self::returnSelf());
        $class = new \ReflectionClass('\\BrowscapPHP\\Command\\ConvertCommand');
        $method = $class->getMethod('configure');
        $method->setAccessible(true);
        self::assertNull($method->invoke($object));
    }