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