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