I also replaced using verify function by asserts, which will be removed in the higher version of phpunit. [MAILPOET-6216]