Example #1
0
 /**
  * @test
  */
 public function testAddInterceptor()
 {
     $interceptor = new Escape();
     $configuration = new Configuration();
     $configuration->addInterceptor($interceptor);
     $interceptors = $configuration->getInterceptors(InterceptorInterface::INTERCEPT_OBJECTACCESSOR);
     $this->assertContains($interceptor, $interceptors);
 }