/** * Tests the isArray proxy method */ public function testIsArray() { $validator = new Validator(); $validator->isArray('username'); $this->assertEmpty($validator->errors(['username' => [1, 2, 3]])); $this->assertNotEmpty($validator->errors(['username' => 'is not an array'])); }