function testNoAllowEmptyWithCriteria() { $validator = new CompExpValidator(); $validator->setDataCanBeEmpty(false); $this->assertFalse($validator->getDataCanBeEmpty()); try { $this->assertFalse($validator->validate("", "<30")); } catch (Exception $e) { $this->pass(); } }