У меня тот же код, который переносит его с 5.6 на 7.3, и кажется, что он падает, поэтому я решил обратиться за помощью?
$this->testMock
->expects($this->once())
->method('testMethodMock')
->with($this->logicalAnd(
$this->matchesRegularExpression('....'),
$this->matchesRegularExpression('....'),
$this->matchesRegularExpression('....'),
));
Запускать его на 5.6 php
Time: 1.14 seconds, Memory: 26.75MB
OK (1 test, 2 assertions)
А вот на 7,3 php
Expectation failed for method name is "warning" when invoked 1 time(s)
Parameter 0 for invocation warning(....) does not match expected value.