/** * */ 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); }
/** * @test */ public function testResultIsInstanceOfUIFaces() { $this->assertInstanceOf(UIFace::class, $this->oGenerator->getRandomUser()); }