Ejemplo n.º 1
0
 /**
  * testRegisterInterfaceCallsRestoreInterfaceOnBuilder
  *
  * @return void
  * @group pdepend
  * @group pdepend::builder
  * @group pdepend::builder::context
  * @group unittest
  */
 public function testRegisterInterfaceCallsRestoreInterfaceOnBuilder()
 {
     $builder = $this->getMock('PHP_Depend_BuilderI');
     $builder->expects($this->once())->method('restoreInterface')->with(self::isInstanceOf(PHP_Depend_Code_Interface::CLAZZ));
     $context = new PHP_Depend_Builder_Context_GlobalStatic($builder);
     $context->registerInterface(new PHP_Depend_Code_Interface(__CLASS__));
 }