public function testReturnValueIsFloat()
 {
     $input = 10000;
     $interestObject = new InvestmentValue($input);
     $expectedValue = (double) 10000;
     $actualValue = $interestObject->getValue();
     $this->assertEquals($expectedValue, $actualValue);
 }
 /**
  * Set the basic information for the calculation and add these to the results array
  *
  * @access private
  * @return void
  */
 private function setBaseInformation()
 {
     $yearsValue = new YearsValue($this->input['years']);
     $this->results['years'] = $yearsValue->getValue();
     $investmentValue = new InvestmentValue($this->input['investment']);
     $this->results['investment'] = $investmentValue->getValue();
     $interestValue = new InterestValue($this->input['interest']);
     $this->results['interest'] = $interestValue->getValue();
 }