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

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

    public function testStaticCreateWithArgsAndOpts()
    {
        $name = 'ls';
        $args = array('first' => 'value', 'second' => 'second value');
        $opts = array('some_option' => 'some value');
        $command = Command::create($name, $args, $opts);
        $this->assertInstanceOf('\\Clinner\\Command\\Command', $command);
        $this->assertAttributeEquals($name, '_name', $command);
        $this->assertAttributeInstanceOf('\\Clinner\\ValueHolder', '_arguments', $command);
        $this->assertAttributeInstanceOf('\\Clinner\\ValueHolder', '_options', $command);
        $this->assertAttributeEmpty('_next', $command);
        $this->assertAttributeEmpty('_exitCode', $command);
        $this->assertAttributeEmpty('_output', $command);
    }