[PhpUnitBridge] CS fix

This commit is contained in:
Nicolas Grekas 2019-04-12 16:49:44 +02:00
parent 37eff9bf68
commit 770c7ddec4

View File

@ -92,7 +92,7 @@ class ClockMock
{ {
$self = \get_called_class(); $self = \get_called_class();
$mockedNs = [substr($class, 0, strrpos($class, '\\'))]; $mockedNs = array(substr($class, 0, strrpos($class, '\\')));
if (0 < strpos($class, '\\Tests\\')) { if (0 < strpos($class, '\\Tests\\')) {
$ns = str_replace('\\Tests\\', '\\', $class); $ns = str_replace('\\Tests\\', '\\', $class);
$mockedNs[] = substr($ns, 0, strrpos($ns, '\\')); $mockedNs[] = substr($ns, 0, strrpos($ns, '\\'));