<NME> InjectableMethodReflection.php
<BEF> ADDFILE
<MSG> Testing using injection via protected method

<DFF> @@ -0,0 +1,20 @@
+<?php
+
+namespace ZendTest\Code\Reflection\TestAsset;
+
+use Zend\Code\Reflection\MethodReflection;
+
+class InjectableMethodReflection extends MethodReflection
+{
+    protected $fileScanner;
+
+    public function setFileScanner($fileScanner)
+    {
+        $this->fileScanner = $fileScanner;
+    }
+
+    protected function createFileScanner($filename)
+    {
+        return $this->fileScanner;
+    }
+}

Testing using injection via protected method