Skip to content

Commit b269699

Browse files
committed
move to moveTo rename
1 parent b32b467 commit b269699

File tree

9 files changed

+15
-15
lines changed

9 files changed

+15
-15
lines changed

src/PHPixie/HTTP/Context/Container/Settable.php

100644100755
File mode changed.

src/PHPixie/HTTP/Messages/UploadedFile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,5 @@ protected function assertValidUpload()
5959
}
6060
}
6161

62-
abstract public function move($path);
62+
abstract public function moveTo($path);
6363
}

src/PHPixie/HTTP/Messages/UploadedFile/Implementation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function getSize()
5959
return $this->size;
6060
}
6161

62-
public function move($path)
62+
public function moveTo($path)
6363
{
6464
$this->assertValidUpload();
6565
if(!$this->moveFile($path)) {

src/PHPixie/HTTP/Messages/UploadedFile/SAPI.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function __construct($messages, $fileData)
1717
$this->size = $fileData['size'];
1818
}
1919

20-
public function move($path)
20+
public function moveTo($path)
2121
{
2222
$this->assertValidUpload();
2323
if(!$this->moveUploadedFile($path)) {

test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
/tmp/http_output_testfTVApt
1+
/tmp/http_output_test5OTo1L

tests/PHPixie/Tests/HTTP/Context/Container/ImplementationTest.php

100644100755
File mode changed.

tests/PHPixie/Tests/HTTP/Messages/UploadedFile/ImplementationTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,21 +80,21 @@ public function testGetters()
8080
}
8181

8282
/**
83-
* @covers ::move
83+
* @covers ::moveTo
8484
* @covers ::<protected>
8585
*/
8686
public function testMove()
8787
{
8888
$destination = 'dest.png';
8989

9090
$this->method($this->uploadedFile, 'moveFile', true, array($destination), 0);
91-
$this->uploadedFile->move($destination);
91+
$this->uploadedFile->moveTo($destination);
9292

9393
$this->method($this->uploadedFile, 'moveFile', false, array($destination), 0);
9494

9595
$uploadedFile = $this->uploadedFile;
9696
$this->assertException(function() use($uploadedFile, $destination) {
97-
$uploadedFile->move($destination);
97+
$uploadedFile->moveTo($destination);
9898
}, '\RuntimeException');
9999
}
100100

@@ -119,7 +119,7 @@ public function testInvalidFileSize()
119119
}
120120

121121
/**
122-
* @covers ::move
122+
* @covers ::moveTo
123123
* @covers ::<protected>
124124
*/
125125
public function testMoveFile()
@@ -132,7 +132,7 @@ public function testMoveFile()
132132
);
133133

134134
$destination = tempnam($this->tempDir, 'uploaded_file_dest.php');
135-
$uploadedFile->move($destination);
135+
$uploadedFile->moveTo($destination);
136136

137137
$this->assertSame(false, file_exists($this->file));
138138
$this->assertSame(true, file_exists($destination));

tests/PHPixie/Tests/HTTP/Messages/UploadedFile/SAPITest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,21 @@ class SAPITest extends \PHPixie\Tests\HTTP\Messages\UploadedFileTest
99
{
1010

1111
/**
12-
* @covers ::move
12+
* @covers ::moveTo
1313
* @covers ::<protected>
1414
*/
1515
public function testMove()
1616
{
1717
$destination = 'dest.png';
1818

1919
$this->method($this->uploadedFile, 'moveUploadedFile', true, array($destination), 0);
20-
$this->uploadedFile->move($destination);
20+
$this->uploadedFile->moveTo($destination);
2121

2222
$this->method($this->uploadedFile, 'moveUploadedFile', false, array($destination), 0);
2323

2424
$uploadedFile = $this->uploadedFile;
2525
$this->assertException(function() use($uploadedFile, $destination) {
26-
$uploadedFile->move($destination);
26+
$uploadedFile->moveTo($destination);
2727
}, '\RuntimeException');
2828
}
2929

@@ -39,7 +39,7 @@ public function testMoveUploadedFile()
3939
);
4040

4141
$this->assertException(function() use($uploadedFile) {
42-
$uploadedFile->move('test');
42+
$uploadedFile->moveTo('test');
4343
}, '\RuntimeException');
4444
}
4545

tests/PHPixie/Tests/HTTP/Messages/UploadedFileTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function testGetters()
6161

6262
/**
6363
* @covers ::getStream
64-
* @covers ::move
64+
* @covers ::moveTo
6565
* @covers ::<protected>
6666
*/
6767
public function testInvalidUpload()
@@ -73,7 +73,7 @@ public function testInvalidUpload()
7373
}, '\RuntimeException');
7474

7575
$this->assertException(function() use($uploadedFile) {
76-
$uploadedFile->move('test');
76+
$uploadedFile->moveTo('test');
7777
}, '\RuntimeException');
7878
}
7979

0 commit comments

Comments
 (0)