function test_php_expr() { $e = new Expression('x + y'); $this->assertEqual($e->php_expr(), '($x+$y)'); $this->assertEqual($e->eval_double(array('x' => 1, 'y' => 3)), 4); }