public function testReturnByRef() { $node = $this->createMethodBuilder('test')->makeReturnByRef()->getNode(); $this->assertEquals(new Stmt\ClassMethod('test', array('byRef' => true)), $node); }