Наследование: implements Phpro\SoapClient\CodeGenerator\Assembler\AssemblerInterface
Пример #1
0
    /**
     * @test
     */
    function it_assembles_a_property()
    {
        $assembler = new PropertyAssembler();
        $context = $this->createContext();
        $assembler->assemble($context);
        $code = $context->getClass()->generate();
        $expected = <<<CODE
namespace MyNamespace;

class MyType
{

    /**
     * @var string
     */
    protected \$prop1 = null;


}

CODE;
        $this->assertEquals($expected, $code);
    }