The last few fixes were for PHP 7.2 support, but we had no 7.2 or 7.1 jobs on Travis.
This patch updates the CI suite to add 7.1 and 7.2 jobs, and upgrades PHPUnit to 5.7/6.5 so that we can actually run it on PHP 7.1 and later. This required minor updates to the test suite to make it compatible:
Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase
Replace setExpectedException() calls with combination of expectException() and (if needed) expectExceptionMessage() and expectExceptionCode().
Do not use getMock() directly; use createMock() or getMockBuilder() + getMock().
The last few fixes were for PHP 7.2 support, but we had no 7.2 or 7.1 jobs on Travis.
This patch updates the CI suite to add 7.1 and 7.2 jobs, and upgrades PHPUnit to 5.7/6.5 so that we can actually run it on PHP 7.1 and later. This required minor updates to the test suite to make it compatible:
PHPUnit\Framework\TestCase
instead ofPHPUnit_Framework_TestCase
setExpectedException()
calls with combination ofexpectException()
and (if needed)expectExceptionMessage()
andexpectExceptionCode()
.getMock()
directly; usecreateMock()
orgetMockBuilder()
+getMock()
.