Example #1
0
 public function testMethodOverwritten()
 {
     $parent = self::$parentUnit->getMethods();
     $child = self::$childUnit->getMethods();
     self::assertTrue($parent->has('overwritten'), 'method not found');
     self::assertTrue($child->has('overwritten'), 'method not found');
     self::assertCount(1, $parent);
     self::assertCount(1, $child);
     self::assertEquals('null', $parent->get('overwritten')->getReturnType());
     self::assertEquals('float', $child->get('overwritten')->getReturnType());
 }
Example #2
0
 /**
  * @param Difference $difference
  */
 private function populateDifference(Difference $difference)
 {
     $difference->addTag(Difference::UNIT_NAME, $this->challenger->getName());
     $difference->addTag(Difference::UNIT_FAMILY, $this->challenger->getFamily());
 }
 /**
  * @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());
 }