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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
b5a6dac3
Commit
b5a6dac3
authored
Aug 30, 2013
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
renamed test method after implementation rename in FileHelper
parent
4d84e094
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
FileHelperTest.php
tests/unit/framework/helpers/FileHelperTest.php
+3
-3
No files found.
tests/unit/framework/helpers/FileHelperTest.php
View file @
b5a6dac3
...
@@ -271,13 +271,13 @@ class FileHelperTest extends TestCase
...
@@ -271,13 +271,13 @@ class FileHelperTest extends TestCase
$this
->
assertEquals
(
array
(
$dirName
.
DIRECTORY_SEPARATOR
.
$fileName
),
$foundFiles
);
$this
->
assertEquals
(
array
(
$dirName
.
DIRECTORY_SEPARATOR
.
$fileName
),
$foundFiles
);
}
}
public
function
test
Mkdir
()
public
function
test
CreateDirectory
()
{
{
$basePath
=
$this
->
testFilePath
;
$basePath
=
$this
->
testFilePath
;
$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'
;
$this
->
assertTrue
(
FileHelper
::
createDirectory
(
$dirName
),
'FileHelper::
mkdir
should return true if directory was created!'
);
$this
->
assertTrue
(
FileHelper
::
createDirectory
(
$dirName
),
'FileHelper::
createDirectory
should return true if directory was created!'
);
$this
->
assertTrue
(
file_exists
(
$dirName
),
'Unable to create directory recursively!'
);
$this
->
assertTrue
(
file_exists
(
$dirName
),
'Unable to create directory recursively!'
);
$this
->
assertTrue
(
FileHelper
::
createDirectory
(
$dirName
),
'FileHelper::
mkdir
should return true for already existing directories!'
);
$this
->
assertTrue
(
FileHelper
::
createDirectory
(
$dirName
),
'FileHelper::
createDirectory
should return true for already existing directories!'
);
}
}
public
function
testGetMimeTypeByExtension
()
public
function
testGetMimeTypeByExtension
()
...
...
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