1
0
www.mikescher.com/demos/blog/protected/tests
2014-05-12 10:11:20 +02:00
..
fixtures Added DB Access + Error page 2014-05-12 10:11:20 +02:00
functional Added DB Access + Error page 2014-05-12 10:11:20 +02:00
unit Added DB Access + Error page 2014-05-12 10:11:20 +02:00
bootstrap.php Added DB Access + Error page 2014-05-12 10:11:20 +02:00
phpunit.xml Added DB Access + Error page 2014-05-12 10:11:20 +02:00
readme.txt Added DB Access + Error page 2014-05-12 10:11:20 +02:00
WebTestCase.php Added DB Access + Error page 2014-05-12 10:11:20 +02:00

This directory contains unit and functional tests for the blog demo.

 - fixtures: contains fixture data for relevant database tables.
   Each file is used to set up the fixture data for a particular table.
   The file name is the same as the table name.

 - functional: contains functional test cases.

 - unit: contains unit test cases.

 - report: contains any coverage reports.


In order to run these tests, the following requirements must be met:

 - PHPUnit 3.3 or higher
 - Selenium RC 1.0 or higher


Depending on your installation of Yii release, you may need to modify
the file "WebTestCase.php" so that the "TEST_BASE_URL" constant contains
correct value. You may also modify "phpunit.xml" to specify the browsers
you intend to run the functional tests on.

To run these tests, please refer to PHPUnit documentation. The followings
are some examples:

 - Executes all tests under the "unit" directory with verbose information:

	phpunit --verbose unit

 - Executes all tests under "functional" (Selenium RC is running):

	phpunit functional

 - Executes a particular test:

	phpunit functional/PostTest.php


*DISCLAIMER* The test cases included here are by no means complete. They mainly serve
for demonstrative purpose.