AppserverIo\Appserver\Application\ApplicationTest::testGetClassLoader PHP Метод

testGetClassLoader() публичный Метод

Test if the getter for a certain class loader works.
public testGetClassLoader ( ) : void
Результат void
    public function testGetClassLoader()
    {
        $mockLoader = $this->getMock('\\AppserverIo\\Appserver\\Core\\Interfaces\\ClassLoaderInterface');
        $reflectionClass = new \ReflectionClass($mockLoader);
        $mockLoaderConfig = $this->getMock('\\AppserverIo\\Appserver\\Core\\Api\\Node\\ClassLoaderNodeInterface');
        $mockLoaderConfig->expects($this->any())->method('getName')->will($this->returnValue($reflectionClass->getShortName()));
        $this->application->addClassLoader($mockLoader, $mockLoaderConfig);
        $this->assertEquals($mockLoader, $this->application->getClassLoader($reflectionClass->getShortName()));
    }