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
42517942
Commit
42517942
authored
Jul 24, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplified test environment setup
parent
e3c2f6b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
22 deletions
+3
-22
test-overview.md
docs/guide/test-overview.md
+3
-22
No files found.
docs/guide/test-overview.md
View file @
42517942
...
...
@@ -25,27 +25,8 @@ Yii provides ready to use test sets for all three testing types in both basic an
Test environment setup
----------------------
The unit testing supported provided by Yii requires
[
PHPUnit
](
http://phpunit.de/
)
. In order to run functional and
acceptance tests you need
[
Codeception
](
http://codeception.com/
)
.
### Installing PHPUnit
It's best to install PHPUnit globally. Since we have Composer we can do it with a single command:
```
composer global require "phpunit/phpunit=4.1.*"
```
After running the command you'll see "Changed current directory to /your/global/composer/dir" message. If it's the
first time you're installing a package globally you need to add
`/your/global/composer/dir/vendor/bin/`
to your
`PATH`
.
Now we're able to use
`phpunit`
from command line.
Check
[
PHPUnit documentation
](
http://phpunit.de/manual/current/en/installation.html
)
for more ways of installing it.
### Installing Codeception
Codeception can be installed globally the same way as PHPUnit:
In order to run tests with Yii you need to install
[
Codeception
](
http://codeception.com/
)
. A good way to install it is
the following:
```
composer global require "codeception/codeception=2.0.*"
...
...
@@ -53,4 +34,4 @@ composer global require "codeception/specify=*"
composer global require "codeception/verify=*"
```
Now we're able to use
`codecept`
from command line.
That's it.
Now we're able to use
`codecept`
from command line.
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