Skip to content

Commit 17aeeed

Browse files
Fixed some unit test typos and changed some test directory names
1 parent ea74013 commit 17aeeed

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

tests/phpbu/Backup/TargetTest.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class TargetTest extends \PHPUnit_Framework_TestCase
1919
*/
2020
public function testSetupPath()
2121
{
22-
$path = sys_get_temp_dir() . '/foo';
22+
$path = sys_get_temp_dir() . '/dirFoo';
2323
$filename = 'foo.txt';
2424
$target = new Target($path, $filename);
2525
$target->setupPath();
@@ -37,10 +37,9 @@ public function testSetupPath()
3737
public function testSetupPathNotWritable()
3838
{
3939
$filename = 'foo.txt';
40-
$path = sys_get_temp_dir() . '/bar';
40+
$path = sys_get_temp_dir() . '/dirBar';
4141
mkdir($path, 0100);
4242

43-
4443
try {
4544
$target = new Target($path, $filename);
4645
$target->setupPath();
@@ -59,10 +58,10 @@ public function testSetupPathNotWritable()
5958
public function testSetupPathCantCreateDir()
6059
{
6160
$filename = 'foo.txt';
62-
$path = sys_get_temp_dir() . '/bar';
61+
$path = sys_get_temp_dir() . '/dirFiz';
6362
mkdir($path, 0100);
6463
try {
65-
$target = new Target($path . '/baz', $filename);
64+
$target = new Target($path . '/dirBuz', $filename);
6665
$target->setupPath();
6766
} catch (\Exception $e) {
6867
chmod($path, 0755);

tests/phpbu/Util/CliTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ public function testGetBaseNotRegistered()
197197
public function testRemoveDir()
198198
{
199199
$dir = sys_get_temp_dir();
200-
$dirToDelete = $dir - '/foo';
200+
$dirToDelete = $dir . '/foo';
201201
$subDir = $dirToDelete . '/bar';
202202

203203
$file = $dirToDelete . '/fiz.txt';

0 commit comments

Comments
 (0)