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

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

    public function testSetOptionsWithValueHolder()
    {
        $opts = $this->getMock('\\Clinner\\ValueHolder');
        $command = $this->getMockBuilder('\\Clinner\\Command\\Command')->disableOriginalConstructor()->setMethods(null)->getMock();
        $this->assertAttributeEmpty('_options', $command);
        $response = $command->setOptions($opts);
        $this->assertAttributeInstanceof('\\Clinner\\ValueHolder', '_options', $command);
        $this->assertAttributeEquals($opts, '_options', $command);
        $this->assertSame($command, $response);
    }