Unverified Commit da130569 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3102903 by mondrake: MigrateExecutableMemoryExceededTest has mismatched...

Issue #3102903 by mondrake: MigrateExecutableMemoryExceededTest has mismatched argument type mock expectations (and fails in PHPUnit8)

(cherry picked from commit dda035c2)
parent 54ee2173
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -80,10 +80,14 @@ protected function runMemoryExceededTest($message, $memory_exceeded, $memory_usa
    if ($message) {
      $this->executable->message->expects($this->at(0))
        ->method('display')
        ->with($this->stringContains('reclaiming memory'));
        ->with($this->callback(function ($subject) {
            return mb_stripos((string) $subject, 'reclaiming memory') !== FALSE;
        }));
      $this->executable->message->expects($this->at(1))
        ->method('display')
        ->with($this->stringContains($message));
        ->with($this->callback(function ($subject) use ($message) {
            return mb_stripos((string) $subject, $message) !== FALSE;
        }));
    }
    else {
      $this->executable->message->expects($this->never())