public function consume($primary, $secondary = null) { if ($this->test($primary, $secondary)) { $this->expect($primary, $secondary); return true; } else { return false; } }