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
4d595873
Commit
4d595873
authored
Mar 29, 2013
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed constructor overriding in test classes
now use setUp() instead
parent
99238886
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
MysqlTestCase.php
tests/unit/MysqlTestCase.php
+2
-2
DbCacheTest.php
tests/unit/framework/caching/DbCacheTest.php
+1
-1
No files found.
tests/unit/MysqlTestCase.php
View file @
4d595873
...
...
@@ -4,7 +4,7 @@ namespace yiiunit;
class
MysqlTestCase
extends
TestCase
{
function
__construct
()
protected
function
setUp
()
{
if
(
!
extension_loaded
(
'pdo'
)
||
!
extension_loaded
(
'pdo_mysql'
))
{
$this
->
markTestSkipped
(
'pdo and pdo_mysql extensions are required.'
);
...
...
@@ -15,7 +15,7 @@ class MysqlTestCase extends TestCase
* @param bool $reset whether to clean up the test database
* @return \yii\db\Connection
*/
function
getConnection
(
$reset
=
true
)
public
function
getConnection
(
$reset
=
true
)
{
$params
=
$this
->
getParam
(
'mysql'
);
$db
=
new
\yii\db\Connection
;
...
...
tests/unit/framework/caching/DbCacheTest.php
View file @
4d595873
...
...
@@ -11,7 +11,7 @@ class DbCacheTest extends CacheTest
private
$_cacheInstance
;
private
$_connection
;
function
__construct
()
protected
function
setUp
()
{
if
(
!
extension_loaded
(
'pdo'
)
||
!
extension_loaded
(
'pdo_mysql'
))
{
$this
->
markTestSkipped
(
'pdo and pdo_mysql extensions are required.'
);
...
...
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