Browse Source

Actualize phpunit usage approach

tags/2.0.0-beta
Alexander Kochetov 11 years ago
parent
commit
32ea48c7ba
  1. 4
      .gitignore
  2. 3
      composer.json
  3. 5
      tests/unit/TestCase.php

4
.gitignore vendored

@ -16,12 +16,14 @@ Thumbs.db
/vendor
# composer itself is not needed
composer.phar
/composer.phar
# composer.lock should not be committed as we always want the latest versions
/composer.lock
# Mac DS_Store Files
.DS_Store
# phpunit itself is not needed
/phpunit.phar
# local phpunit config
/phpunit.xml

3
composer.json

@ -83,7 +83,8 @@
"ext-pdo_mysql": "*",
"smarty/smarty": "*",
"swiftmailer/swiftmailer": "*",
"twig/twig": "*"
"twig/twig": "*",
"phpunit/phpunit": "3.7.*"
},
"suggest": {
"twbs/bootstrap": "required by yii2-bootstrap, yii2-debug, yii2-gii extension",

5
tests/unit/TestCase.php

@ -2,11 +2,6 @@
namespace yiiunit;
require_once('PHPUnit/Runner/Version.php');
spl_autoload_unregister(['Yii', 'autoload']);
require_once('PHPUnit/Autoload.php');
spl_autoload_register(['Yii', 'autoload']); // put yii's autoloader at the end
/**
* This is the base class for all yii framework unit tests.
*/

Loading…
Cancel
Save