<NME> ParameterScannerTest.php
<BEF> <?php

namespace ZendTest\Code\Scanner;

use Zend\Code\Scanner\ScannerFile;

class ScannerParameterTest extends \PHPUnit_Framework_TestCase
{
    
    public function testScannerParamterHasParameterInformation()
    {
        $file = new ScannerFile(__DIR__ . '/../TestAsset/BarClass.php');
        $class = $file->getClass('ZendTest\Code\TestAsset\BarClass');
        $method = $class->getMethod('three');
        $parameter = $method->getParameter('t');
        $this->assertEquals('ZendTest\Code\TestAsset\BarClass', $parameter->getDeclaringClass());
        $this->assertEquals('three', $parameter->getDeclaringFunction());
    public function testParameterScannerHasParameterInformation()
    {
        $file      = new FileScanner(__DIR__ . '/../TestAsset/BarClass.php');
        $class     = $file->getClass(BarClass::class);
        $method    = $class->getMethod('three');
        $this->assertTrue($parameter->isOptional());
        $this->assertTrue($parameter->isPassedByReference());
    }

}
        self::assertEquals(2, $parameter->getPosition());
        self::assertEquals('2', $parameter->getDefaultValue());
        self::assertFalse($parameter->isArray());
        self::assertTrue($parameter->isDefaultValueAvailable());
        self::assertTrue($parameter->isOptional());
        self::assertTrue($parameter->isPassedByReference());
    }
}

<MSG> Rename from ScannerFoo to FooScanner

- Renamed to be consistent with other similar usage elsewhere
  - Reflection API is exempted from this renaming, as it mimics an internal API
    (which uses pseudo-namespaces)
  - CodeGenerator may require similar refactoring

<DFF> @@ -2,16 +2,16 @@
 
 namespace ZendTest\Code\Scanner;
 
-use Zend\Code\Scanner\ScannerFile;
+use Zend\Code\Scanner\FileScanner,
+    PHPUnit_Framework_TestCase as TestCase;
 
-class ScannerParameterTest extends \PHPUnit_Framework_TestCase
+class ParameterScannerTest extends TestCase
 {
-    
-    public function testScannerParamterHasParameterInformation()
+    public function testParameterScannerHasParameterInformation()
     {
-        $file = new ScannerFile(__DIR__ . '/../TestAsset/BarClass.php');
-        $class = $file->getClass('ZendTest\Code\TestAsset\BarClass');
-        $method = $class->getMethod('three');
+        $file      = new FileScanner(__DIR__ . '/../TestAsset/BarClass.php');
+        $class     = $file->getClass('ZendTest\Code\TestAsset\BarClass');
+        $method    = $class->getMethod('three');
         $parameter = $method->getParameter('t');
         $this->assertEquals('ZendTest\Code\TestAsset\BarClass', $parameter->getDeclaringClass());
         $this->assertEquals('three', $parameter->getDeclaringFunction());
@@ -23,5 +23,4 @@ class ScannerParameterTest extends \PHPUnit_Framework_TestCase
         $this->assertTrue($parameter->isOptional());
         $this->assertTrue($parameter->isPassedByReference());
     }
-
-}
\ No newline at end of file
+}

Rename from ScannerFoo to FooScanner