1515 limitations under the License.
1616*/
1717
18+ namespace TinCanTest ;
19+
20+ use TinCan \Agent ;
1821use TinCan \Context ;
22+ use TinCan \ContextActivities ;
23+ use TinCan \Extensions ;
24+ use TinCan \Group ;
25+ use TinCan \StatementRef ;
1926use TinCan \Util ;
2027
21- class ContextTest extends PHPUnit_Framework_TestCase {
22- use TinCanTest \ TestCompareWithSignatureTrait;
28+ class ContextTest extends \ PHPUnit_Framework_TestCase {
29+ use TestCompareWithSignatureTrait;
2330
2431 private $ emptyProperties = array (
2532 'registration ' ,
@@ -103,9 +110,9 @@ public function testAsVersion() {
103110
104111 public function testSetInstructor () {
105112 $ common_agent_cfg = [ 'mbox ' => COMMON_MBOX ];
106- $ common_agent = new TinCan \ Agent ($ common_agent_cfg );
113+ $ common_agent = new Agent ($ common_agent_cfg );
107114 $ common_group_cfg = [ 'mbox ' => COMMON_MBOX , 'objectType ' => 'Group ' ];
108- $ common_group = new TinCan \ Group ($ common_agent_cfg );
115+ $ common_group = new Group ($ common_agent_cfg );
109116
110117 $ obj = new Context ();
111118
@@ -119,38 +126,38 @@ public function testSetInstructor() {
119126 public function testCompareWithSignature () {
120127 $ registration1 = Util::getUUID ();
121128 $ registration2 = Util::getUUID ();
122- $ instructor1 = new TinCan \ Agent (
129+ $ instructor1 = new Agent (
123130 [ 'mbox ' => COMMON_MBOX ]
124131 );
125- $ instructor2 = new TinCan \ Agent (
132+ $ instructor2 = new Agent (
126133 [ 'account ' => [ 'homePage ' => COMMON_ACCT_HOMEPAGE , 'name ' => COMMON_ACCT_NAME ]]
127134 );
128- $ team1 = new TinCan \ Agent (
135+ $ team1 = new Agent (
129136 [ 'mbox ' => COMMON_MBOX ]
130137 );
131- $ team2 = new TinCan \ Agent (
138+ $ team2 = new Agent (
132139 [ 'account ' => [ 'homePage ' => COMMON_ACCT_HOMEPAGE , 'name ' => COMMON_ACCT_NAME ]]
133140 );
134- $ contextActivities1 = new TinCan \ ContextActivities (
141+ $ contextActivities1 = new ContextActivities (
135142 [ 'parent ' => [ COMMON_ACTIVITY_ID ]]
136143 );
137- $ contextActivities2 = new TinCan \ ContextActivities (
144+ $ contextActivities2 = new ContextActivities (
138145 [ 'parent ' => [ COMMON_ACTIVITY_ID . '/parent ' ]],
139146 [ 'grouping ' => [ COMMON_ACTIVITY_ID ]]
140147 );
141- $ ref1 = new TinCan \ StatementRef (
148+ $ ref1 = new StatementRef (
142149 [ 'id ' => Util::getUUID () ]
143150 );
144- $ ref2 = new TinCan \ StatementRef (
151+ $ ref2 = new StatementRef (
145152 [ 'id ' => Util::getUUID () ]
146153 );
147- $ extensions1 = new TinCan \ Extensions (
154+ $ extensions1 = new Extensions (
148155 [
149156 COMMON_EXTENSION_ID_1 => 'test1 ' ,
150157 COMMON_EXTENSION_ID_2 => 'test2 '
151158 ]
152159 );
153- $ extensions2 = new TinCan \ Extensions (
160+ $ extensions2 = new Extensions (
154161 [
155162 COMMON_EXTENSION_ID_1 => 'test1 '
156163 ]
0 commit comments