api-8.x-1.x-dev/tests/files/special_files/badheader.php

tests/files/special_files/badheader.php
<?php

/**
 * @file badheader.php
 *
 * This is a test of a non-conforming file docblock with defgroup in it.
 *
 * @defgroup mygroup Test group
 * @{
 */

/**
 * A function.
 */
function badheader_fun() {
  theme('sample', array());
}

/**
 * @} End of "defgroup mygroup".
 */

/**
 * @defgroup another Another bad group
 *
 * This doc block comes before a class but has a defgroup in it.
 * Testing a bug: making sure that the class still gets saved.
 */
class ClassWithDefgroupDocBlock {
  function foo() {
    return 1;
  }
}

/**
 * First duplicate function in same file.
 */
function twice_in_one_file() {
  $foo = 'string in first version';
}

/**
 * Second duplicate function in same file.
 */
function twice_in_one_file() {
  $foo = 'string in second version';
}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc