1 | <?php |
||
7 | class PEMTest extends PHPUnit_Framework_TestCase |
||
|
|||
8 | { |
||
9 | /** |
||
10 | */ |
||
11 | public function testFromString() |
||
17 | |||
18 | /** |
||
19 | * |
||
20 | * @return \Sop\CryptoEncoding\PEM |
||
21 | */ |
||
22 | public function testFromFile() |
||
28 | |||
29 | /** |
||
30 | * @depends testFromFile |
||
31 | * |
||
32 | * @param PEM $pem |
||
33 | */ |
||
34 | public function testType(PEM $pem) |
||
38 | |||
39 | /** |
||
40 | */ |
||
41 | public function testData() |
||
52 | |||
53 | /** |
||
54 | * @expectedException UnexpectedValueException |
||
55 | */ |
||
56 | public function testInvalidPEM() |
||
60 | |||
61 | /** |
||
62 | * @expectedException UnexpectedValueException |
||
63 | */ |
||
64 | public function testInvalidPEMData() |
||
73 | |||
74 | /** |
||
75 | * @expectedException RuntimeException |
||
76 | */ |
||
77 | public function testInvalidFile() |
||
81 | |||
82 | /** |
||
83 | * @depends testFromFile |
||
84 | * |
||
85 | * @param PEM $pem |
||
86 | */ |
||
87 | public function testString(PEM $pem) |
||
91 | |||
92 | /** |
||
93 | * @depends testFromFile |
||
94 | * |
||
95 | * @param PEM $pem |
||
96 | */ |
||
97 | public function testToString(PEM $pem) |
||
101 | } |
||
102 |
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.