public function testReturnEmptyValues() { $this->v->required('md5[valid]'); $this->v->required('md5[notvalid]'); $values = $this->v->getValues(); $this->assertArrayNotHasKey('md5[notvalid]', $values); $values = $this->v->getValues(true); $this->assertArrayHasKey('md5[notvalid]', $values); }