Set the supported PHPUnit version to either 5.7 or 6.0, depending on PHP version used.
A number of test changes were required:
All references to PHPUnit_Framework_TestCase were updated to the namespaced version. In any case where the class was not imported, an import statement was created.
All setExpectedException() calls were updated to expectException(), and, if an expected message was provided, expectExceptionMessage()
A number of getMock() calls still existed without usage of getMockBuilder(); these were updated.
A zend-servicemanager test trait for testing container compatibility between zend-servicemanager versions differs from v2 to v3; the two instances in this particular suite were updated to override the necessary tests to vary strategy based on which PHP version was detected.
New test failures were discovered in the flash messenger tests due to differences in how PHPUnit handles global state; these were corrected.
This patch updates the package to:
A number of test changes were required:
PHPUnit_Framework_TestCase
were updated to the namespaced version. In any case where the class was not imported, an import statement was created.setExpectedException()
calls were updated toexpectException()
, and, if an expected message was provided,expectExceptionMessage()
getMock()
calls still existed without usage ofgetMockBuilder()
; these were updated.