Files
san-reymoros/vendor/ocramius/proxy-manager/tests/language-feature-scripts/null-object-public-function-empty.phpt
gauvainboiche 058c2110e9 first commit
2020-03-03 22:45:25 +01:00

24 lines
363 B
PHP

--TEST--
Verifies that generated null object disallow public function
--FILE--
<?php
require_once __DIR__ . '/init.php';
class Kitchen
{
public function foo()
{
return 'bar';
}
}
$factory = new \ProxyManager\Factory\NullObjectFactory($configuration);
$proxy = $factory->createProxy('Kitchen');
var_dump($proxy->foo());
?>
--EXPECT--
NULL