Exemplo n.º 1
0
 /**
  *
  */
 public function testBatchUsersRequest()
 {
     $aReturnedUsers = $this->oGenerator->getBatchUsers(5);
     $this->assertNotEmpty($aReturnedUsers);
     $this->assertTrue(is_array($aReturnedUsers));
     // test that the returned array only has elements of type UIFaces::class
     $aNotUIFaces = array_filter($aReturnedUsers, function ($oElement) {
         return get_class($oElement) !== UIFace::class;
     });
     $this->assertEmpty($aNotUIFaces);
 }
Exemplo n.º 2
0
 /**
  * @test
  */
 public function testResultIsInstanceOfUIFaces()
 {
     $this->assertInstanceOf(UIFace::class, $this->oGenerator->getRandomUser());
 }