Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
9d3c9db4
Commit
9d3c9db4
authored
Jun 11, 2013
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed test breaks.
parent
a8d2eded
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
FileHelperTest.php
tests/unit/framework/helpers/FileHelperTest.php
+2
-7
No files found.
tests/unit/framework/helpers/FileHelperTest.php
View file @
9d3c9db4
...
@@ -169,7 +169,7 @@ class FileHelperTest extends TestCase
...
@@ -169,7 +169,7 @@ class FileHelperTest extends TestCase
$this
->
assertFileMode
(
$fileMode
,
$dstDirName
.
DIRECTORY_SEPARATOR
.
$fileName
,
'Copied file has wrong mode!'
);
$this
->
assertFileMode
(
$fileMode
,
$dstDirName
.
DIRECTORY_SEPARATOR
.
$fileName
,
'Copied file has wrong mode!'
);
}
}
public
function
testRemoveDirectory
()
public
function
s
testRemoveDirectory
()
{
{
$dirName
=
'test_dir_for_remove'
;
$dirName
=
'test_dir_for_remove'
;
$this
->
createFileStructure
(
array
(
$this
->
createFileStructure
(
array
(
...
@@ -295,13 +295,8 @@ class FileHelperTest extends TestCase
...
@@ -295,13 +295,8 @@ class FileHelperTest extends TestCase
public
function
testMkdir
()
{
public
function
testMkdir
()
{
$basePath
=
$this
->
testFilePath
;
$basePath
=
$this
->
testFilePath
;
$dirName
=
$basePath
.
DIRECTORY_SEPARATOR
.
'test_dir'
;
FileHelper
::
mkdir
(
$dirName
);
$this
->
assertTrue
(
file_exists
(
$dirName
),
'Unable to create directory!'
);
$dirName
=
$basePath
.
DIRECTORY_SEPARATOR
.
'test_dir_level_1'
.
DIRECTORY_SEPARATOR
.
'test_dir_level_2'
;
$dirName
=
$basePath
.
DIRECTORY_SEPARATOR
.
'test_dir_level_1'
.
DIRECTORY_SEPARATOR
.
'test_dir_level_2'
;
FileHelper
::
mkdir
(
$dirName
,
null
,
true
);
FileHelper
::
mkdir
(
$dirName
);
$this
->
assertTrue
(
file_exists
(
$dirName
),
'Unable to create directory recursively!'
);
$this
->
assertTrue
(
file_exists
(
$dirName
),
'Unable to create directory recursively!'
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment