Esempio n. 1
0
 /**
  * Tests that the interface implementation overwrites the
  * setParentClassReference() method and throws an exception.
  *
  * @return void
  * @covers PHP_Depend_Code_Interface
  * @covers PHP_Depend_Code_AbstractClassOrInterface
  * @group pdepend
  * @group pdepend::code
  * @group unittest
  * @expectedException BadMethodCallException
  */
 public function testInterfaceThrowsExpectedExceptionOnSetParentClassReference()
 {
     $interface = new PHP_Depend_Code_Interface('IFooBar');
     $interface->setParentClassReference($this->getMock('PHP_Depend_Code_ASTClassReference', array(), array(), '', false));
 }