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

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

    public function testStaticCreateNoArgsNoOpts()
    {
        $name = 'ls';
        $command = Command::create($name);
        $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);
    }