forked from phpDocumentor/phpDocumentor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTokenIteratorTestFixture.php
More file actions
148 lines (126 loc) · 2.59 KB
/
Copy pathTokenIteratorTestFixture.php
File metadata and controls
148 lines (126 loc) · 2.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<?php
/**
* File docblock
*
* @package Tokens
* @subpackage Tests
*/
/**
* @package Tokens
* @subpackage Tests
*/
namespace
{
define('TEST', -1);
define('TEST2', 1);
}
namespace Test\Tests5
{
interface iTest extends \Countable
{
}
abstract class test implements iTest
{
public function count()
{
}
abstract public function count2();
}
require 'test2.php';
require_once 'test2.php';
include('test2.php');
include_once 'test2.php';
const GLOBAL_CONST = '1';
const GLOBAL_CONST3 = 2, GLOBAL_CONST4 = '1';
const GLOBAL_CONST2 = '2';
/**
* Function docblock for SingleFunction
*
* This is a code block:
*
* block of code
*
* @param int $argument
* @param Test\SingleClass $argument2 This is a test argument
*
* @return void
*/
function single_function($argument = 'test', $argument2 = 'test2')
{
}
/**
* This is a test method
*
* @return int description
*/
function test_function()
{
}
/**
* This is a test method
*
* @return int description
*/
function test_function2()
{
}
}
namespace Test
{
/**
* test.
*
* This is a class test
*
* @author Mike
*/
class SingleClass
{
private $test = null;
private $test2 = array('test' => 1);
private $test3 = 1;
/**
* This is a property test
*
* @var boolean
*/
private $test4 = true;
/**
* Method Docblock for StaticPublicMethod
*
* I have explicitly added a **long** description _containing_ some markup to:
*
* * demonstrate what it looks like
* * test the markdown conversion process
*
* @param array $argument_a test argument
* @param FooBarClass $argument_b test argument
*
* @return void
*/
static public function StaticPublicMethod(array $argument_a, FooBarClass $argument_b = null)
{
}
/**
* Method Docblock
*
* @param int $argument test argument
*
* @return void
*/
public function PublicMethod($argument)
{
}
protected function ProtectedMethod()
{
}
}
abstract class FooBarClass extends SingleClass implements Reflector, Traversable
{
const TEST = 'test2';
}
class FooBarClass2 extends SingleClass
{
const TEST = 'test2';
}
}