|
@@ 162-175 (lines=14) @@
|
| 159 |
|
$this->assertTrue(Loader::autoloadIncludePath('NamespacedClass')); |
| 160 |
|
} |
| 161 |
|
|
| 162 |
|
public function testMethodwriteAutoloadingMapFile() |
| 163 |
|
{ |
| 164 |
|
if (is_file($this->classMapFile)) { |
| 165 |
|
unlink($this->classMapFile); |
| 166 |
|
} |
| 167 |
|
|
| 168 |
|
// file will be created |
| 169 |
|
$this->assertSame([], Loader::readAutoloadingMapFile()); |
| 170 |
|
$this->assertTrue(is_file($this->classMapFile)); |
| 171 |
|
|
| 172 |
|
$array = ['class' => 'file']; |
| 173 |
|
$this->assertTrue(Loader::writeAutoloadingMapFile($array)); |
| 174 |
|
$this->assertSame($array, Loader::readAutoloadingMapFile()); |
| 175 |
|
} |
| 176 |
|
|
| 177 |
|
public function testMethodreadAutoloadingMapFile() |
| 178 |
|
{ |
|
@@ 177-189 (lines=13) @@
|
| 174 |
|
$this->assertSame($array, Loader::readAutoloadingMapFile()); |
| 175 |
|
} |
| 176 |
|
|
| 177 |
|
public function testMethodreadAutoloadingMapFile() |
| 178 |
|
{ |
| 179 |
|
if (is_file($this->classMapFile)) { |
| 180 |
|
unlink($this->classMapFile); |
| 181 |
|
} |
| 182 |
|
// file will be created |
| 183 |
|
$this->assertSame([], Loader::readAutoloadingMapFile()); |
| 184 |
|
$this->assertTrue(is_file($this->classMapFile)); |
| 185 |
|
|
| 186 |
|
$array = ['class' => 'file']; |
| 187 |
|
$this->assertTrue(Loader::writeAutoloadingMapFile($array)); |
| 188 |
|
$this->assertSame($array, Loader::readAutoloadingMapFile()); |
| 189 |
|
} |
| 190 |
|
|
| 191 |
|
public function testMethodwriteAutoloadingMapApc() |
| 192 |
|
{ |