Skip to content

Instantly share code, notes, and snippets.

@jack126guy
Last active January 5, 2016 07:42
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
phpDocumentor test
<?php
/**
* Test file
*
* @author Jack126Guy someanon126@gmail.com
* @license http://creativecommons.org/publicdomain/zero/1.0/
* Creative Commons CC0 1.0 Universal
*/
namespace {
/**
* Global constant
*/
const GLOBAL_TEST_CONST = 'Test';
/**
* Global test function
*/
function global_test_func() {
//Do nothing
}
/**
* Global test class
*/
class GlobalTestClass {
}
}
/**
* Test namespace
*/
namespace Test {
/**
* Namespace constant
*/
const TEST_CONST = 'Test';
/**
* Test function in a namespace
*/
function test_func() {
//Do nothing
}
/**
* Test class in a namespace
*/
class TestClass {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment