Пример #1
0
 /**
  * Tests that the {@link PHP_Depend_Code_Method::setModifiers()} method marks
  * a method as static+final.
  *
  * @return void
  */
 public function testSetModifiersMarksMethodAsStaticFinal()
 {
     $method = new PHP_Depend_Code_Method('method');
     $method->setModifiers(PHP_Depend_ConstantsI::IS_PROTECTED | PHP_Depend_ConstantsI::IS_STATIC | PHP_Depend_ConstantsI::IS_FINAL);
     self::assertTrue($method->isFinal() && $method->isStatic());
 }