/** * @param $value * @param $expectedException * @throws base_database_Exception * * @test * @dataProvider toStringTestDataProvider */ public function toStringTest($value, $expectedException) { if ($expectedException === true) { $this->setExpectedException('base_database_Exception', TMS(base_database_Exception::NO_INT_VALUE, array('value' => $value))); } $term = new base_database_term_Int(); $term->setValue($value); $this->assertEquals($value, $term->toString()); }