Files
yii2/tests
Carsten Brandt 15904951ef Merge PR #3406 branch 'exist-validator-enhancement' of https://github.com/creocoder/yii2
* 'exist-validator-enhancement' of https://github.com/creocoder/yii2:
  ExistValidator final refactoring. `allowArray` checking also added to `validateValue` method.
  New tests added
  New tests added
  ExistValidator::validateValue() fixed
  Tests excess dump removed
  ExistValidator bugfix
  Tests updated
  ExistValidator refactoring
  CHANGELOG updated
  `allowArray` introduced.
  CHANGELOG
  ExistValidator count logic fix
  Tests updated
  Tests updated
  Tests updated
  Refactoring
  Refactoring
  Improve `exist` validator to support array attributes

Conflicts:
	framework/CHANGELOG.md
2014-05-15 10:00:06 +02:00
..
2013-10-28 15:48:57 +01:00

Yii 2.0 Unit tests

DIRECTORY STRUCTURE

  unit/                Unit tests to run with PHPUnit
      data/            models, config and other test data
          config.php   this file contains configuration for database and caching backends
      framework/       the framework unit tests
      runtime/         the application runtime dir for the yii test app
  web/                 webapp for functional testing

HOW TO RUN THE TESTS

Make sure you have PHPUnit installed.

Run PHPUnit in the yii repo base directory.

phpunit

You can run tests for specific groups only:

phpunit --group=mysql,base,i18n

You can get a list of available groups via phpunit --list-groups.

TEST CONFIGURATION

PHPUnit configuration is in phpunit.xml.dist in repository root folder. You can create your own phpunit.xml to override dist config.

Database and other backend system configuration can be found in unit/data/config.php adjust them to your needs to allow testing databases and caching in your environment.