Beispiel #1
0
 public function testAddInterceptorToCache()
 {
     $interceptor = $this->getMock('Tmont\\Phroxy\\Interceptor');
     $this->container->registerInterceptor($interceptor, function ($x) {
         return true;
     });
     self::assertEquals(1, count(InterceptorCache::getInterceptors(new ReflectionMethod($interceptor, 'onBeforeMethodCall'))));
 }