<NME> TestSampleClass9.php
<BEF> ADDFILE
<MSG> Get class content with multiline class declaration

When you have a class declared such as:

class Foo
   extends Bar
   implements Baz
{
    /* ... */
}

The ClassReflection::getContent() method would not work properly, as
getStartLine() returns the line number immediately following the 'class'
keyword, regardless of how many lines the class declaration is spanned
over. Thus, you'd end up with some of the class declaration sometimes.
This patch starts at the 'class' keyword, and finds the first '{', and
considers that the start of the class. This is not 100% perfect, but
should cover 99% of cases.

Also, the getContent() method was using array_splice(), however,
array_slice() is more appropriate.

<DFF> @@ -0,0 +1,33 @@
+<?php
+
+namespace ZendTest\Code\Reflection\TestAsset;
+
+use ZendTest\Code\Reflection\TestAsset\SampleAnnotation as Sample;
+
+class TestSampleClass9
+    extends Sample
+    implements \IteratorAggregate
+{
+    protected $_prop1 = null;
+
+    /**
+     * @Sample({"foo":"bar"})
+     */
+    protected $_prop2 = null;
+
+    public function getProp1()
+    {
+        return $this->_prop1;
+    }
+
+    public function getProp2($param1, TestSampleClass $param2)
+    {
+        return $this->_prop2;
+    }
+
+    public function getIterator()
+    {
+        return array();
+    }
+
+}

Get class content with multiline class declaration