public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     // Add version check to prevent fatals
     if (PHP_VERSION_ID >= 50600) {
         self::$invocationClass = MethodInvocationComposer::compose(false, true, true, false);
     }
 }
예제 #2
0
 /**
  * Initialize static mappings to reduce the time for checking features
  *
  * @param bool $useClosureBinding Enables usage of closures instead of reflection
  * @param bool $useSplatOperator Enables usage of optimized invocation with splat operator
  */
 protected static function setMappings($useClosureBinding, $useSplatOperator)
 {
     $dynamicMethodClass = MethodInvocationComposer::compose(false, $useClosureBinding, $useSplatOperator, false);
     $staticMethodClass = MethodInvocationComposer::compose(true, $useClosureBinding, $useSplatOperator, false);
     // We are using LSB here and overridden static property
     static::$invocationClassMap = array(AspectContainer::METHOD_PREFIX => $dynamicMethodClass, AspectContainer::STATIC_METHOD_PREFIX => $staticMethodClass, AspectContainer::PROPERTY_PREFIX => 'Go\\Aop\\Framework\\ClassFieldAccess', AspectContainer::STATIC_INIT_PREFIX => 'Go\\Aop\\Framework\\StaticInitializationJoinpoint', AspectContainer::INIT_PREFIX => 'Go\\Aop\\Framework\\ReflectionConstructorInvocation');
 }
 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     self::$invocationClass = MethodInvocationComposer::compose(false, true, false, false);
 }