public function testPhpExtensionsActionUpdater()
 {
     $request = $this->getMock('\\Zend\\Http\\PhpEnvironment\\Request', [], [], '', false);
     $response = $this->getMock('\\Zend\\Http\\PhpEnvironment\\Response', [], [], '', false);
     $routeMatch = $this->getMock('\\Zend\\Mvc\\Router\\RouteMatch', [], [], '', false);
     $mvcEvent = $this->getMock('\\Zend\\Mvc\\MvcEvent', [], [], '', false);
     $mvcEvent->expects($this->once())->method('setRequest')->with($request)->willReturn($mvcEvent);
     $mvcEvent->expects($this->once())->method('setResponse')->with($response)->willReturn($mvcEvent);
     $mvcEvent->expects($this->once())->method('setTarget')->with($this->environment)->willReturn($mvcEvent);
     $mvcEvent->expects($this->any())->method('getRouteMatch')->willReturn($routeMatch);
     $request->expects($this->once())->method('getQuery')->willReturn(ReadinessCheckUpdater::UPDATER);
     $this->phpReadinessCheck->expects($this->never())->method('checkPhpExtensions');
     $read = $this->getMockForAbstractClass('Magento\\Framework\\Filesystem\\Directory\\ReadInterface', [], '', false);
     $this->filesystem->expects($this->once())->method('getDirectoryRead')->willReturn($read);
     $read->expects($this->once())->method('readFile')->willReturn('');
     $this->environment->setEvent($mvcEvent);
     $this->environment->dispatch($request, $response);
     $this->environment->phpExtensionsAction();
 }