/**
* Set up tests
*
- * @param stgring $testMethod Method tested
+ * @param stgring $method Method tested
*
* @return void
*/
- public function beforeTestMethod($testMethod)
+ public function beforeTestMethod($method)
{
setlocale(LC_ALL, 'en_US');
$this->install = new \Galette\Core\Install();
}
+ /**
+ * Tear down tests
+ *
+ * @param string $method Calling method
+ *
+ * @return void
+ */
+ public function afterTestMethod($method)
+ {
+ if (TYPE_DB === 'mysql') {
+ $zdb = new \Galette\Core\Db();
+ $this->array($zdb->getWarnings())->isIdenticalTo([]);
+ }
+ }
+
/**
* Test constructor
*