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
b2b9b4f3
Commit
b2b9b4f3
authored
Mar 16, 2013
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test wip
parent
b71e8301
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
3 deletions
+28
-3
TestCase.php
framework/test/TestCase.php
+2
-2
WebTestCase.php
framework/test/WebTestCase.php
+25
-0
ActiveForm.php
framework/widgets/ActiveForm.php
+1
-1
No files found.
framework/test/TestCase.php
View file @
b2b9b4f3
...
@@ -10,9 +10,9 @@
...
@@ -10,9 +10,9 @@
namespace
yii\test
;
namespace
yii\test
;
require_once
(
'PHPUnit/Runner/Version.php'
);
require_once
(
'PHPUnit/Runner/Version.php'
);
spl_autoload_unregister
(
array
(
'Yii
Base
'
,
'autoload'
));
spl_autoload_unregister
(
array
(
'Yii'
,
'autoload'
));
require_once
(
'PHPUnit/Autoload.php'
);
require_once
(
'PHPUnit/Autoload.php'
);
spl_autoload_register
(
array
(
'Yii
Base
'
,
'autoload'
));
// put yii's autoloader at the end
spl_autoload_register
(
array
(
'Yii'
,
'autoload'
));
// put yii's autoloader at the end
/**
/**
* TestCase is the base class for all test case classes.
* TestCase is the base class for all test case classes.
...
...
framework/test/WebTestCase.php
0 → 100644
View file @
b2b9b4f3
<?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
(
array
(
'Yii'
,
'autoload'
));
require_once
(
'PHPUnit/Autoload.php'
);
spl_autoload_register
(
array
(
'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
{
}
framework/widgets/ActiveForm.php
View file @
b2b9b4f3
...
@@ -63,7 +63,7 @@ class ActiveForm extends Widget
...
@@ -63,7 +63,7 @@ class ActiveForm extends Widget
$models
=
array
(
$models
);
$models
=
array
(
$models
);
}
}
$showAll
=
isset
(
$options
[
'showAll'
])
&&
$options
[
'showAll'
]
)
;
$showAll
=
isset
(
$options
[
'showAll'
])
&&
$options
[
'showAll'
];
$lines
=
array
();
$lines
=
array
();
/** @var $model Model */
/** @var $model Model */
foreach
(
$models
as
$model
)
{
foreach
(
$models
as
$model
)
{
...
...
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