public function testReturnType() { $node = $this->createMethodBuilder('test')->setReturnType('bool')->getNode(); $this->assertEquals(new Stmt\ClassMethod('test', array('returnType' => 'bool'), array()), $node); }