Пример #1
0
 public function testInYards()
 {
     $PoolLength = new PoolLength();
     $PoolLength->setYards(27.34);
     $this->assertEquals(27.34, $PoolLength->yards());
     $this->assertEquals('27.34 ' . DistanceUnitSystem::YARDS, $PoolLength->stringYards());
 }
Пример #2
0
 /**
  * Constructor
  * @param \Runalyze\View\Activity\Context $Context
  */
 public function __construct(\Runalyze\View\Activity\Context $Context)
 {
     $PoolLength = new Activity\PoolLength($Context->swimdata()->poollength());
     parent::__construct(\Helper::Unknown($PoolLength->valueInPreferredUnit(), '-'), $PoolLength->unit(), $PoolLength->label());
 }