/** * @param Difference $difference * @param Method $method */ private function populateDifference(Difference $difference, Method $method) { $unit = $method->getUnit(); $difference->addTag(Difference::UNIT_NAME, $unit->getName()); $difference->addTag(Difference::UNIT_FAMILY, $unit->getFamily()); $difference->addTag(Difference::METHOD_NAME, $method->getName()); }
/** * @param Difference $difference */ private function populateDifference(Difference $difference) { $unit = $this->challenger->getUnit(); $difference->addTag(Difference::UNIT_NAME, $unit->getName()); $difference->addTag(Difference::UNIT_FAMILY, $unit->getFamily()); $difference->addTag(Difference::CONSTANT_NAME, $this->challenger->getName()); }
/** * @param Difference $difference * @param Constant $constant */ private function populateDifference(Difference $difference, Constant $constant) { $unit = $constant->getUnit(); $difference->addTag(Difference::UNIT_NAME, $unit->getName()); $difference->addTag(Difference::UNIT_FAMILY, $unit->getFamily()); $difference->addTag(Difference::CONSTANT_NAME, $constant->getName()); }
/** * @param Difference $difference * @param Member $member */ private function populateDifference(Difference $difference, Member $member) { $unit = $member->getUnit(); $difference->addTag(Difference::UNIT_NAME, $unit->getName()); $difference->addTag(Difference::UNIT_FAMILY, $unit->getFamily()); $difference->addTag(Difference::MEMBER_NAME, $member->getName()); }
/** * @param Difference $difference */ private function populateDifference(Difference $difference) { $method = $this->challenger->getMethod(); $unit = $method->getUnit(); $difference->addTag(Difference::UNIT_NAME, $unit->getName()); $difference->addTag(Difference::UNIT_FAMILY, $unit->getFamily()); $difference->addTag(Difference::METHOD_NAME, $method->getName()); }
public function testHasTagForNonEmptyTags() { $name = 'tag'; $value = 'value'; $difference = new Difference('message'); $difference->addTag($name, $value); self::assertTrue($difference->hasTag($name)); self::assertEquals($value, $difference->getTag($name)); }
/** * @param Difference $difference * @param Unit $unit */ private function populateDifference(Difference $difference, Unit $unit) { $difference->addTag(Difference::UNIT_NAME, $unit->getName()); $difference->addTag(Difference::UNIT_FAMILY, $unit->getFamily()); }