public function testResetBoth() { $rule = new Rule(); $rule->addWarning(array('message' => 'Warning', 'line' => 0)); $rule->addViolation(array('message' => 'Violation', 'line' => 0)); $rule->reset(); $this->assertIdentical(0, count($rule->warnings())); $this->assertIdentical(0, count($rule->violations())); }