public function testGetContentsReturnsContents() { $reflectionClass = new Zend_Reflection_Class('Zend_Reflection_TestSampleClass2'); $target = <<<EOS { protected \$_prop1 = null; protected \$_prop2 = null; public function getProp1() { return \$this->_prop1; } public function getProp2(\$param1, Zend_Reflection_TestSampleClass \$param2) { return \$this->_prop2; } public function getIterator() { return array(); } } EOS; $this->assertEquals($target, $reflectionClass->getContents()); }