예제 #1
0
 /**
  * Constructor.
  *
  * @param Math $math
  */
 public function __construct(Math $math)
 {
     $this->math = $math;
     $this->operators = $math->getOperators();
     $this->operatorsRegexp = '\\' . implode('\\', $this->operators);
 }
예제 #2
0
 public function testOperatorList()
 {
     $this->assertEquals($this->math->getOperators(), array(Math::OPERATOR_ADDITION, Math::OPERATOR_SUBTRACTION));
 }