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
989b95a9
Commit
989b95a9
authored
Feb 19, 2013
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
used imports
parent
0093d534
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
BehaviorTest.php
tests/unit/framework/base/BehaviorTest.php
+8
-4
No files found.
tests/unit/framework/base/BehaviorTest.php
View file @
989b95a9
...
@@ -2,12 +2,16 @@
...
@@ -2,12 +2,16 @@
namespace
yiiunit\framework\base
;
namespace
yiiunit\framework\base
;
class
BarClass
extends
\yii\base\Component
use
yii\base\Behavior
;
use
yii\base\Component
;
use
yiiunit\TestCase
;
class
BarClass
extends
Component
{
{
}
}
class
FooClass
extends
\yii\base\
Component
class
FooClass
extends
Component
{
{
public
function
behaviors
()
public
function
behaviors
()
{
{
...
@@ -17,7 +21,7 @@ class FooClass extends \yii\base\Component
...
@@ -17,7 +21,7 @@ class FooClass extends \yii\base\Component
}
}
}
}
class
BarBehavior
extends
\yii\base\
Behavior
class
BarBehavior
extends
Behavior
{
{
public
$behaviorProperty
=
'behavior property'
;
public
$behaviorProperty
=
'behavior property'
;
...
@@ -27,7 +31,7 @@ class BarBehavior extends \yii\base\Behavior
...
@@ -27,7 +31,7 @@ class BarBehavior extends \yii\base\Behavior
}
}
}
}
class
BehaviorTest
extends
\yiiunit\
TestCase
class
BehaviorTest
extends
TestCase
{
{
public
function
testAttachAndAccessing
()
public
function
testAttachAndAccessing
()
{
{
...
...
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