1515use Xabbuh \XApi \DataFixtures \StatementFixtures ;
1616use Xabbuh \XApi \Model \Agent ;
1717use Xabbuh \XApi \Model \InverseFunctionalIdentifier ;
18+ use Xabbuh \XApi \Model \IRI ;
19+ use Xabbuh \XApi \Model \IRL ;
1820use Xabbuh \XApi \Model \Statement ;
1921use Xabbuh \XApi \Model \StatementId ;
2022use Xabbuh \XApi \Model \StatementReference ;
@@ -161,7 +163,7 @@ public function testVoidStatement()
161163 {
162164 $ voidedStatementId = '12345678-1234-5678-1234-567812345679 ' ;
163165 $ voidingStatementId = '12345678-1234-5678-1234-567812345678 ' ;
164- $ agent = new Agent (InverseFunctionalIdentifier::withMbox ('mailto:john.doe@example.com ' ));
166+ $ agent = new Agent (InverseFunctionalIdentifier::withMbox (IRI :: fromString ( 'mailto:john.doe@example.com ' ) ));
165167 $ statementReference = new StatementReference (StatementId::fromString ($ voidedStatementId ));
166168 $ voidingStatement = new Statement (null , $ agent , Verb::createVoidVerb (), $ statementReference );
167169 $ voidedStatement = $ this ->createStatement ($ voidedStatementId );
@@ -288,7 +290,7 @@ public function testGetStatementsWithAgentInStatementsFilter()
288290 {
289291 // {"mbox":"mailto:alice@example.com","objectType":"Agent"}
290292 $ filter = new StatementsFilter ();
291- $ agent = new Agent (InverseFunctionalIdentifier::withMbox ('mailto:alice@example.com ' ));
293+ $ agent = new Agent (InverseFunctionalIdentifier::withMbox (IRI :: fromString ( 'mailto:alice@example.com ' ) ));
292294 $ filter ->byActor ($ agent );
293295 $ statementResult = $ this ->createStatementResult ();
294296 $ agentJson = '{"mbox":"mailto:alice@example.com","objectType":"Agent"} ' ;
@@ -312,7 +314,7 @@ public function testGetStatementsWithAgentInStatementsFilter()
312314 public function testGetStatementsWithVerbInStatementsFilter ()
313315 {
314316 $ filter = new StatementsFilter ();
315- $ verb = new Verb ('http://adlnet.gov/expapi/verbs/attended ' );
317+ $ verb = new Verb (IRI :: fromString ( 'http://adlnet.gov/expapi/verbs/attended ' ) );
316318 $ filter ->byVerb ($ verb );
317319 $ statementResult = $ this ->createStatementResult ();
318320 $ this ->validateRetrieveApiCall (
@@ -330,7 +332,7 @@ public function testGetStatementsWithVerbInStatementsFilter()
330332 public function testGetNextStatements ()
331333 {
332334 $ moreUrl = '/xapi/statements/more/b381d8eca64a61a42c7b9b4ecc2fabb6 ' ;
333- $ previousStatementResult = new StatementResult (array (), $ moreUrl );
335+ $ previousStatementResult = new StatementResult (array (), IRL :: fromString ( $ moreUrl) );
334336 $ this ->validateRetrieveApiCall (
335337 'get ' ,
336338 $ moreUrl ,
0 commit comments