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
1c24b3e0
Commit
1c24b3e0
authored
Nov 16, 2013
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed TestCase and WebTestCase.
parent
8106cded
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
27 additions
and
62 deletions
+27
-62
ClassmapController.php
build/controllers/ClassmapController.php
+0
-3
classes.php
framework/yii/classes.php
+13
-0
TestCase.php
framework/yii/test/TestCase.php
+0
-25
WebTestCase.php
framework/yii/test/WebTestCase.php
+0
-25
TestCase.php
tests/unit/TestCase.php
+6
-1
ExceptionTest.php
tests/unit/framework/base/ExceptionTest.php
+1
-1
ArrayHelperTest.php
tests/unit/framework/helpers/ArrayHelperTest.php
+1
-1
FileHelperTest.php
tests/unit/framework/helpers/FileHelperTest.php
+1
-1
JsonTest.php
tests/unit/framework/helpers/JsonTest.php
+1
-1
StringHelperTest.php
tests/unit/framework/helpers/StringHelperTest.php
+2
-2
VarDumperTest.php
tests/unit/framework/helpers/VarDumperTest.php
+2
-2
No files found.
build/controllers/ClassmapController.php
View file @
1c24b3e0
...
...
@@ -46,10 +46,7 @@ class ClassmapController extends Controller
'except'
=>
[
'Yii.php'
,
'BaseYii.php'
,
'/debug/'
,
'/console/'
,
'/test/'
,
'/gii/'
,
],
];
$files
=
FileHelper
::
findFiles
(
$root
,
$options
);
...
...
framework/yii/classes.php
View file @
1c24b3e0
...
...
@@ -76,8 +76,12 @@ return [
'yii\data\Pagination'
=>
YII_PATH
.
'/data/Pagination.php'
,
'yii\data\Sort'
=>
YII_PATH
.
'/data/Sort.php'
,
'yii\db\ActiveQuery'
=>
YII_PATH
.
'/db/ActiveQuery.php'
,
'yii\db\ActiveQueryInterface'
=>
YII_PATH
.
'/db/ActiveQueryInterface.php'
,
'yii\db\ActiveQueryTrait'
=>
YII_PATH
.
'/db/ActiveQueryTrait.php'
,
'yii\db\ActiveRecord'
=>
YII_PATH
.
'/db/ActiveRecord.php'
,
'yii\db\ActiveRelation'
=>
YII_PATH
.
'/db/ActiveRelation.php'
,
'yii\db\ActiveRelationInterface'
=>
YII_PATH
.
'/db/ActiveRelationInterface.php'
,
'yii\db\ActiveRelationTrait'
=>
YII_PATH
.
'/db/ActiveRelationTrait.php'
,
'yii\db\ColumnSchema'
=>
YII_PATH
.
'/db/ColumnSchema.php'
,
'yii\db\Command'
=>
YII_PATH
.
'/db/Command.php'
,
'yii\db\Connection'
=>
YII_PATH
.
'/db/Connection.php'
,
...
...
@@ -87,6 +91,8 @@ return [
'yii\db\Migration'
=>
YII_PATH
.
'/db/Migration.php'
,
'yii\db\Query'
=>
YII_PATH
.
'/db/Query.php'
,
'yii\db\QueryBuilder'
=>
YII_PATH
.
'/db/QueryBuilder.php'
,
'yii\db\QueryInterface'
=>
YII_PATH
.
'/db/QueryInterface.php'
,
'yii\db\QueryTrait'
=>
YII_PATH
.
'/db/QueryTrait.php'
,
'yii\db\Schema'
=>
YII_PATH
.
'/db/Schema.php'
,
'yii\db\StaleObjectException'
=>
YII_PATH
.
'/db/StaleObjectException.php'
,
'yii\db\TableSchema'
=>
YII_PATH
.
'/db/TableSchema.php'
,
...
...
@@ -149,6 +155,10 @@ return [
'yii\log\FileTarget'
=>
YII_PATH
.
'/log/FileTarget.php'
,
'yii\log\Logger'
=>
YII_PATH
.
'/log/Logger.php'
,
'yii\log\Target'
=>
YII_PATH
.
'/log/Target.php'
,
'yii\mail\BaseMailer'
=>
YII_PATH
.
'/mail/BaseMailer.php'
,
'yii\mail\BaseMessage'
=>
YII_PATH
.
'/mail/BaseMessage.php'
,
'yii\mail\MailerInterface'
=>
YII_PATH
.
'/mail/MailerInterface.php'
,
'yii\mail\MessageInterface'
=>
YII_PATH
.
'/mail/MessageInterface.php'
,
'yii\mutex\DbMutex'
=>
YII_PATH
.
'/mutex/DbMutex.php'
,
'yii\mutex\FileMutex'
=>
YII_PATH
.
'/mutex/FileMutex.php'
,
'yii\mutex\Mutex'
=>
YII_PATH
.
'/mutex/Mutex.php'
,
...
...
@@ -161,6 +171,8 @@ return [
'yii\redis\Connection'
=>
YII_PATH
.
'/redis/Connection.php'
,
'yii\redis\Transaction'
=>
YII_PATH
.
'/redis/Transaction.php'
,
'yii\requirements\YiiRequirementChecker'
=>
YII_PATH
.
'/requirements/YiiRequirementChecker.php'
,
'yii\test\DbFixtureManager'
=>
YII_PATH
.
'/test/DbFixtureManager.php'
,
'yii\test\DbTestTrait'
=>
YII_PATH
.
'/test/DbTestTrait.php'
,
'yii\validators\BooleanValidator'
=>
YII_PATH
.
'/validators/BooleanValidator.php'
,
'yii\validators\CompareValidator'
=>
YII_PATH
.
'/validators/CompareValidator.php'
,
'yii\validators\DateValidator'
=>
YII_PATH
.
'/validators/DateValidator.php'
,
...
...
@@ -169,6 +181,7 @@ return [
'yii\validators\ExistValidator'
=>
YII_PATH
.
'/validators/ExistValidator.php'
,
'yii\validators\FileValidator'
=>
YII_PATH
.
'/validators/FileValidator.php'
,
'yii\validators\FilterValidator'
=>
YII_PATH
.
'/validators/FilterValidator.php'
,
'yii\validators\ImageValidator'
=>
YII_PATH
.
'/validators/ImageValidator.php'
,
'yii\validators\InlineValidator'
=>
YII_PATH
.
'/validators/InlineValidator.php'
,
'yii\validators\NumberValidator'
=>
YII_PATH
.
'/validators/NumberValidator.php'
,
'yii\validators\PunycodeAsset'
=>
YII_PATH
.
'/validators/PunycodeAsset.php'
,
...
...
framework/yii/test/TestCase.php
deleted
100644 → 0
View file @
8106cded
<?php
/**
* TestCase class.
*
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace
yii\test
;
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
/**
* TestCase is the base class for all test case classes.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*/
abstract
class
TestCase
extends
\PHPUnit_Framework_TestCase
{
}
framework/yii/test/WebTestCase.php
deleted
100644 → 0
View file @
8106cded
<?php
/**
* WebTestCase class.
*
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace
yii\test
;
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
/**
* WebTestCase is the base class for all test case classes.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*/
abstract
class
WebTestCase
extends
\PHPUnit_Extensions_SeleniumTestCase
{
}
tests/unit/TestCase.php
View file @
1c24b3e0
...
...
@@ -2,10 +2,15 @@
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.
*/
abstract
class
TestCase
extends
\
yii\test\
TestCase
abstract
class
TestCase
extends
\
PHPUnit_Framework_
TestCase
{
public
static
$params
;
...
...
tests/unit/framework/base/ExceptionTest.php
View file @
1c24b3e0
<?php
namespace
yiiunit\framework\base
;
use
yii
\tes
t\TestCase
;
use
yii
uni
t\TestCase
;
use
yii\base\UserException
;
use
yii\base\InvalidCallException
;
...
...
tests/unit/framework/helpers/ArrayHelperTest.php
View file @
1c24b3e0
...
...
@@ -4,7 +4,7 @@ namespace yiiunit\framework\helpers;
use
yii\base\Object
;
use
yii\helpers\ArrayHelper
;
use
yii
\tes
t\TestCase
;
use
yii
uni
t\TestCase
;
use
yii\data\Sort
;
class
Post1
...
...
tests/unit/framework/helpers/FileHelperTest.php
View file @
1c24b3e0
<?php
use
yii\helpers\FileHelper
;
use
yii
\tes
t\TestCase
;
use
yii
uni
t\TestCase
;
/**
* Unit test for [[yii\helpers\FileHelper]]
...
...
tests/unit/framework/helpers/JsonTest.php
View file @
1c24b3e0
...
...
@@ -4,7 +4,7 @@
namespace
yiiunit\framework\helpers
;
use
yii\helpers\Json
;
use
yii
\tes
t\TestCase
;
use
yii
uni
t\TestCase
;
use
yii\web\JsExpression
;
/**
...
...
tests/unit/framework/helpers/StringHelperTest.php
View file @
1c24b3e0
<?php
namespace
yiiunit\framework\helpers
;
use
\yii\helpers\StringHelper
as
StringHelper
;
use
yii
\tes
t\TestCase
;
use
yii\helpers\
StringHelper
;
use
yii
uni
t\TestCase
;
/**
* StringHelperTest
...
...
tests/unit/framework/helpers/VarDumperTest.php
View file @
1c24b3e0
<?php
namespace
yiiunit\framework\helpers
;
use
\
yii\helpers\VarDumper
;
use
yii
\tes
t\TestCase
;
use
yii\helpers\VarDumper
;
use
yii
uni
t\TestCase
;
/**
* @group helpers
...
...
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