示例#1
0
 public function testToString()
 {
     $this->parser->setExpression('2+2');
     $expected = (string) 4;
     $this->assertEquals($expected, (string) $this->parser);
     $this->assertEquals($expected, $this->parser->__toString());
 }