Verzeichnisstruktur phpBB-3.2.0
- Veröffentlicht
- 06.01.2017
So funktioniert es
|
Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück |
Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis. |
|
(Beispiel Datei-Icons)
|
Auf das Icon klicken um den Quellcode anzuzeigen |
lazy-loading-value-holder-internal-php-classes.phpt
01 --TEST--
02 Verifies that lazy loading value holder factory can generate proxy for PHP core classes.
03 --FILE--
04 <?php
05
06 require_once __DIR__ . '/init.php';
07
08 class PharMock extends Phar
09 {
10 public function __construct()
11 {
12 }
13
14 public function compress($compression_type, $file_ext = null)
15 {
16 echo $compression_type;
17 }
18 }
19
20 $factory = new \ProxyManager\Factory\LazyLoadingValueHolderFactory($configuration);
21
22 $factory
23 ->createProxy('Phar', function (& $wrapped, $proxy, $method, array $parameters, & $initializer) {
24 $initializer = null;
25 $wrapped = new PharMock();
26 })
27 ->compress('Lazy Loaded!');
28
29 ?>
30 --EXPECT--
31 Lazy Loaded!