/** * @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); }