Exemplo n.º 1
0
 /**
  * testMagicWakeupCallsRegisterTraitOnBuilderContext
  *
  * @return void
  */
 public function testMagicWakeupCallsRegisterTraitOnBuilderContext()
 {
     $context = $this->getMockBuilder(PHP_Depend_Builder_Context::CLAZZ)->disableOriginalClone()->getMock();
     $context->expects($this->once())->method('registerTrait')->with($this->isInstanceOf(PHP_Depend_Code_Trait::CLAZZ));
     $trait = new PHP_Depend_Code_Trait(__FUNCTION__);
     $trait->setContext($context);
     $trait->__wakeup();
 }