コード例 #1
0
 /**
  * @param string $class
  * @param string|bool $expectedValue
  * @dataProvider getFileDataProvider
  */
 public function testLoad($class, $expectedValue)
 {
     Magento_Autoload_IncludePath::addIncludePath(__DIR__ . '/_files');
     $this->assertFalse(class_exists($class, false));
     Magento_Autoload_IncludePath::load($class);
     if ($expectedValue) {
         $this->assertTrue(class_exists($class, false));
     } else {
         $this->assertFalse(class_exists($class, false));
     }
 }