/**
  * @test
  */
 public function canDetermineIfItAppliesToASpecification()
 {
     $rule = new SituationBasedRule(Situation::UserViewPost(), true);
     $this->assertTrue($rule->appliesTo(Situation::UserViewPostWithCategoryIdEquals5()));
     $this->assertTrue($rule->appliesTo(Situation::UserViewPostWithWordCountGreaterThan100()));
 }
 public function notifyRuleAdded(SituationBasedRule $rule)
 {
     $this->add($rule->getSituation());
 }