コード例 #1
0
 /**
  * Loads a statement with a group as an actor.
  *
  * @param string $id The id of the new Statement
  *
  * @return Statement
  */
 public static function getStatementWithGroupActor($id = self::DEFAULT_STATEMENT_ID)
 {
     $group = ActorFixtures::getGroup();
     $verb = VerbFixtures::getVerb();
     $activity = ActivityFixtures::getActivity();
     return new Statement($id, $group, $verb, $activity);
 }
コード例 #2
0
 public function testSerializeGroup()
 {
     $group = ActorFixtures::getGroup();
     $this->assertJsonEquals(ActorJsonFixtures::getGroup(), $this->actorSerializer->serializeActor($group));
 }
コード例 #3
0
 public function getObjectsToValidate()
 {
     return array(array(ActorFixtures::getAnonymousGroup(), 0, array('anonymous')), array(ActorFixtures::getGroup(), 0, array('identified')));
 }