public function testInstance() { $this->assertTrue(AutoLoader::instance() instanceof AutoLoader); $this->assertTrue(TestClass::isLoaded()); $this->assertTrue(TestClass2::isLoaded()); $this->assertTrue(TestClass3::isLoaded()); }
/** * Property was created automatically, do not change it manually */ private static $__joinPoints = array(); public static function test() { return self::$__joinPoints['static:test']->__invoke(\get_called_class()); } } \Go\Proxy\ClassProxy::injectJoinPoints('Test\\ns3\\TestClass11', array('method' => array('test' => array(0 => 'advisor.Test\\ns3\\TestClass11->test')))); TestClass11::test(); class TestClass2__AopProxied { public static function test() { } } class TestClass2 extends TestClass2__AopProxied implements \Go\Aop\Proxy { /** * Property was created automatically, do not change it manually */ private static $__joinPoints = array(); public static function test() { return self::$__joinPoints['static:test']->__invoke(\get_called_class()); } } \Go\Proxy\ClassProxy::injectJoinPoints('Test\\ns3\\TestClass2', array('method' => array('test' => array(0 => 'advisor.Test\\ns3\\TestClass2->test')))); TestClass2::test();