77
88namespace Icewind \Streams \Tests ;
99
10- class UrlCallBack extends \PHPUnit_Framework_TestCase {
10+ class UrlCallback extends \PHPUnit_Framework_TestCase {
1111 protected $ tempDirs = array ();
1212
1313 protected function getTempDir () {
@@ -45,7 +45,7 @@ public function testFOpenCallBack() {
4545 $ callback = function () use (&$ called ) {
4646 $ called = true ;
4747 };
48- $ path = \Icewind \Streams \UrlCallBack ::wrap ('php://temp ' , $ callback );
48+ $ path = \Icewind \Streams \UrlCallback ::wrap ('php://temp ' , $ callback );
4949 $ fh = fopen ($ path , 'r ' );
5050 fclose ($ fh );
5151 $ this ->assertTrue ($ called );
@@ -56,7 +56,7 @@ public function testOpenDirCallBack() {
5656 $ callback = function () use (&$ called ) {
5757 $ called = true ;
5858 };
59- $ path = \Icewind \Streams \UrlCallBack ::wrap ($ this ->getTempDir (), null , $ callback );
59+ $ path = \Icewind \Streams \UrlCallback ::wrap ($ this ->getTempDir (), null , $ callback );
6060 $ fh = opendir ($ path );
6161 closedir ($ fh );
6262 $ this ->assertTrue ($ called );
@@ -68,7 +68,7 @@ public function testMKDirCallBack() {
6868 $ called = true ;
6969 };
7070 $ dir = $ this ->getTempDir () . '/test ' ;
71- $ path = \Icewind \Streams \UrlCallBack ::wrap ($ dir , null , null , $ callback );
71+ $ path = \Icewind \Streams \UrlCallback ::wrap ($ dir , null , null , $ callback );
7272 mkdir ($ path );
7373 $ this ->assertTrue (file_exists ($ dir ));
7474 $ this ->assertTrue ($ called );
@@ -81,7 +81,7 @@ public function testRMDirCallBack() {
8181 };
8282 $ dir = $ this ->getTempDir () . '/test ' ;
8383 mkdir ($ dir );
84- $ path = \Icewind \Streams \UrlCallBack ::wrap ($ dir , null , null , null , null , $ callback );
84+ $ path = \Icewind \Streams \UrlCallback ::wrap ($ dir , null , null , null , null , $ callback );
8585 rmdir ($ path );
8686 $ this ->assertFalse (file_exists ($ dir ));
8787 $ this ->assertTrue ($ called );
@@ -94,7 +94,7 @@ public function testRenameCallBack() {
9494 };
9595 $ source = $ this ->getTempDir () . '/test ' ;
9696 touch ($ source );
97- $ path = \Icewind \Streams \UrlCallBack ::wrap ($ source , null , null , null , $ callback );
97+ $ path = \Icewind \Streams \UrlCallback ::wrap ($ source , null , null , null , $ callback );
9898 $ target = $ path ->wrapPath ($ source . '_rename ' );
9999 rename ($ path , $ target );
100100 $ this ->assertTrue (file_exists ($ source . '_rename ' ));
@@ -108,7 +108,7 @@ public function testUnlinkCallBack() {
108108 };
109109 $ file = $ this ->getTempDir () . '/test ' ;
110110 touch ($ file );
111- $ path = \Icewind \Streams \UrlCallBack ::wrap ($ file , null , null , null , null , null , $ callback );
111+ $ path = \Icewind \Streams \UrlCallback ::wrap ($ file , null , null , null , null , null , $ callback );
112112 unlink ($ path );
113113 $ this ->assertFalse (file_exists ($ file ));
114114 $ this ->assertTrue ($ called );
@@ -121,7 +121,7 @@ public function testStatCallBack() {
121121 };
122122 $ file = $ this ->getTempDir () . '/test ' ;
123123 touch ($ file );
124- $ path = \Icewind \Streams \UrlCallBack ::wrap ($ file , null , null , null , null , null , null , $ callback );
124+ $ path = \Icewind \Streams \UrlCallback ::wrap ($ file , null , null , null , null , null , null , $ callback );
125125 try {
126126 stat ($ path );
127127 } catch (\Exception $ e ) {
@@ -132,7 +132,7 @@ public function testStatCallBack() {
132132
133133 public function testMKDirRecursive () {
134134 $ dir = $ this ->getTempDir () . '/test/sad ' ;
135- $ path = \Icewind \Streams \UrlCallBack ::wrap ($ dir );
135+ $ path = \Icewind \Streams \UrlCallback ::wrap ($ dir );
136136 mkdir ($ path , 0700 , true );
137137 $ this ->assertTrue (file_exists ($ dir ));
138138 }
0 commit comments