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 |
remote-object-json-adapter-denies-unknow-method.phpt
01 --TEST--
02 Verifies that generated remote object can call public property
03 --FILE--
04 <?php
05
06 require_once __DIR__ . '/init.php';
07
08 use ProxyManager\Factory\RemoteObject\AdapterInterface;
09 use Zend\Json\Server\Client;
10
11 interface FooServiceInterface
12 {
13 public function foo();
14 }
15
16 class Foo implements FooServiceInterface
17 {
18 public $foo = "baz";
19
20 public function foo()
21 {
22 return 'bar';
23 }
24 }
25
26 class CustomAdapter implements AdapterInterface
27 {
28 public function call($wrappedClass, $method, array $params = array())
29 {
30 return 'baz';
31 }
32 }
33
34 $factory = new \ProxyManager\Factory\RemoteObjectFactory(new CustomAdapter(), $configuration);
35 $proxy = $factory->createProxy('ProxyManagerTestAsset\RemoteProxy\FooServiceInterface');
36
37 var_dump($proxy->foo());
38 var_dump($proxy->unknown());
39 ?>
40 --EXPECTF--
41 string(3) "baz"
42
43 %SFatal error: Call to undefined method %s::unknown%S in %s on line %d
44