<NME> DerivedClassScannerTest.php
<BEF> <?php
/**
 * Zend Framework (http://framework.zend.com/)
 *
 * @link      http://github.com/zendframework/zf2 for the canonical source repository
 * @copyright Copyright (c) 2005-2016 Zend Technologies USA Inc. (http://www.zend.com)
 * @license   http://framework.zend.com/license/new-bsd New BSD License
 */

namespace ZendTest\Code\Scanner;

    public function testCreatesClass()
    {
        $ds = new DirectoryScanner();
        $ds->addDirectory(__DIR__ . '/../TestAsset');
        $ads = new AggregateDirectoryScanner();
        $ads->addScanner($ds);
        $c = $ads->getClass('ZendTest\Code\Scanner\TestAsset\MapperExample\RepositoryB');
        var_dump($c->getProperties());
    }
    
    
        $ads->addDirectoryScanner($ds);
        $c = $ads->getClass(TestAsset\MapperExample\RepositoryB::class);
        self::assertEquals(TestAsset\MapperExample\RepositoryB::class, $c->getName());
    }
}

<MSG> Fixed Zend\Codes test for ClassScanner and DervivedClassScanner to work

<DFF> @@ -12,11 +12,11 @@ class DerivedClassScannerTest extends \PHPUnit_Framework_TestCase
     public function testCreatesClass()
     {
         $ds = new DirectoryScanner();
-        $ds->addDirectory(__DIR__ . '/../TestAsset');
+        $ds->addDirectory(__DIR__ . '/TestAsset');
         $ads = new AggregateDirectoryScanner();
         $ads->addScanner($ds);
         $c = $ads->getClass('ZendTest\Code\Scanner\TestAsset\MapperExample\RepositoryB');
-        var_dump($c->getProperties());
+        $this->assertEquals('ZendTest\Code\Scanner\TestAsset\MapperExample\RepositoryB', $c->getName());
     }
     
     

Fixed Zend\Codes test for ClassScanner and DervivedClassScanner to work