16
16
class ApcUniversalClassLoaderTest extends \PHPUnit_Framework_TestCase
17
17
{
18
18
19
- protected function skipIfAPCExtensionIsNotLoadedOrEnabled ()
19
+ protected function setUp ()
20
20
{
21
21
if (!extension_loaded ('apc ' )) {
22
22
$ this ->markTestSkipped ('The apc extension is not available. ' );
@@ -29,8 +29,6 @@ protected function skipIfAPCExtensionIsNotLoadedOrEnabled()
29
29
30
30
public function testConstructor ()
31
31
{
32
- $ this ->skipIfAPCExtensionIsNotLoadedOrEnabled ();
33
-
34
32
$ loader = new ApcUniversalClassLoader ('test.prefix. ' );
35
33
$ loader ->registerNamespace ('Namespaced ' , __DIR__ .DIRECTORY_SEPARATOR .'Fixtures ' );
36
34
@@ -42,8 +40,6 @@ public function testConstructor()
42
40
*/
43
41
public function testLoadClass ($ className , $ testClassName , $ message )
44
42
{
45
- $ this ->skipIfAPCExtensionIsNotLoadedOrEnabled ();
46
-
47
43
$ loader = new ApcUniversalClassLoader ('test.prefix. ' );
48
44
$ loader ->registerNamespace ('Namespaced ' , __DIR__ .DIRECTORY_SEPARATOR .'Fixtures ' );
49
45
$ loader ->registerPrefix ('Pearlike_ ' , __DIR__ .DIRECTORY_SEPARATOR .'Fixtures ' );
@@ -66,8 +62,6 @@ public function getLoadClassTests()
66
62
*/
67
63
public function testLoadClassFromFallback ($ className , $ testClassName , $ message )
68
64
{
69
- $ this ->skipIfAPCExtensionIsNotLoadedOrEnabled ();
70
-
71
65
$ loader = new ApcUniversalClassLoader ('test.prefix. ' );
72
66
$ loader ->registerNamespace ('Namespaced ' , __DIR__ .DIRECTORY_SEPARATOR .'Fixtures ' );
73
67
$ loader ->registerPrefix ('Pearlike_ ' , __DIR__ .DIRECTORY_SEPARATOR .'Fixtures ' );
@@ -92,8 +86,6 @@ public function getLoadClassFromFallbackTests()
92
86
*/
93
87
public function testLoadClassNamespaceCollision ($ namespaces , $ className , $ message )
94
88
{
95
- $ this ->skipIfAPCExtensionIsNotLoadedOrEnabled ();
96
-
97
89
$ loader = new ApcUniversalClassLoader ('test.prefix. ' );
98
90
$ loader ->registerNamespaces ($ namespaces );
99
91
@@ -144,8 +136,6 @@ public function getLoadClassNamespaceCollisionTests()
144
136
*/
145
137
public function testLoadClassPrefixCollision ($ prefixes , $ className , $ message )
146
138
{
147
- $ this ->skipIfAPCExtensionIsNotLoadedOrEnabled ();
148
-
149
139
$ loader = new ApcUniversalClassLoader ('test.prefix. ' );
150
140
$ loader ->registerPrefixes ($ prefixes );
151
141
0 commit comments