1 | <?php |
||
8 | class PEMBundleTest extends PHPUnit_Framework_TestCase |
||
|
|||
9 | { |
||
10 | /** |
||
11 | * |
||
12 | * @return PEMBundle |
||
13 | */ |
||
14 | public function testBundle() |
||
20 | |||
21 | /** |
||
22 | * @depends testBundle |
||
23 | * |
||
24 | * @param PEMBundle $bundle |
||
25 | */ |
||
26 | public function testAll(PEMBundle $bundle) |
||
30 | |||
31 | /** |
||
32 | * @depends testBundle |
||
33 | * |
||
34 | * @param PEMBundle $bundle |
||
35 | */ |
||
36 | public function testFirst(PEMBundle $bundle) |
||
40 | |||
41 | /** |
||
42 | * @depends testBundle |
||
43 | * |
||
44 | * @param PEMBundle $bundle |
||
45 | */ |
||
46 | public function testCount(PEMBundle $bundle) |
||
50 | |||
51 | /** |
||
52 | * @depends testBundle |
||
53 | * |
||
54 | * @param PEMBundle $bundle |
||
55 | */ |
||
56 | public function testIterator(PEMBundle $bundle) |
||
64 | |||
65 | /** |
||
66 | * @depends testBundle |
||
67 | * |
||
68 | * @param PEMBundle $bundle |
||
69 | */ |
||
70 | public function testString(PEMBundle $bundle) |
||
74 | |||
75 | /** |
||
76 | * @depends testBundle |
||
77 | * |
||
78 | * @param PEMBundle $bundle |
||
79 | */ |
||
80 | public function testToString(PEMBundle $bundle) |
||
84 | |||
85 | /** |
||
86 | * @expectedException UnexpectedValueException |
||
87 | */ |
||
88 | public function testInvalidPEM() |
||
92 | |||
93 | /** |
||
94 | * @expectedException UnexpectedValueException |
||
95 | */ |
||
96 | public function testInvalidPEMData() |
||
105 | |||
106 | /** |
||
107 | * @expectedException RuntimeException |
||
108 | */ |
||
109 | public function testInvalidFile() |
||
113 | |||
114 | /** |
||
115 | * @expectedException LogicException |
||
116 | */ |
||
117 | public function testFirstEmptyFail() |
||
122 | |||
123 | /** |
||
124 | * @depends testBundle |
||
125 | * |
||
126 | * @param PEMBundle $bundle |
||
127 | */ |
||
128 | public function testWithPEMs(PEMBundle $bundle) |
||
133 | } |
||
134 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.