Пример #1
0
 /**
  * @return mixed
  */
 public function render()
 {
     $result = new Number($this->getValue());
     return $this->operand->render() . ' = ' . $result->render();
 }
Пример #2
0
 /**
  * @dataProvider values
  *
  * @param $number
  * @param $value
  * @param string $decPoint
  * @param string $thousandSeparator
  */
 public function testGetValue($number, $value, $decPoint = '.', $thousandSeparator = ',')
 {
     $operand = new Number($number, $decPoint, $thousandSeparator);
     verify("number is treated correctly", $operand->getValue())->equals($value);
     codecept_debug($operand->getValue());
 }