Bug #36310

ContextTest broken due to missing ActionRequestHandler

Added by Jacob Floyd over 9 years ago. Updated over 9 years ago.

Should have
Target version:
Start date:
Due date:
% Done:


Estimated time:
PHP Version:
Has patch:


So, I'm running the test suite on a fresh checkout of git master git clone --recursive git://git.typo3.org/FLOW3/Distributions/Base.git -o typo3.

To run the tests, I'm doing phpunit -c Build/Common/PhpUnit/UnitTests.xml

Part way through, I'm getting:

PHP Fatal error:  Class 'TYPO3\FLOW3\Mvc\TYPO3\FLOW3\Mvc\ActionRequestHandler' not found in /usr/share/php/PHPUnit/Framework/MockObject/Generator.php(170) : eval()'d code on line 7

Fatal error: Class 'TYPO3\FLOW3\Mvc\TYPO3\FLOW3\Mvc\ActionRequestHandler' not found in /usr/share/php/PHPUnit/Framework/MockObject/Generator.php(170) : eval()'d code on line 7
Thanks to grep, it seems that the only tests that uses an ActionRequestHandler are in Tests/Unit/Security/ContextTest.php:
  • securityContextIsSetToInitialized()
  • initializeSeparatesActiveAdnInactiveTokens()

In both cases, getMock('TYPO3\FLOW3\Mvc\ActionRequestHandler' is used. However, I don't see an ActionRequestHandler. There's an ActionRequest, but not a Handler. Does this need to change according to recent Http changes? should it be using Http\Request or Mvc\ActionRequest or something else entirely?

I'm using phpunit 3.5.13 and php 5.3.10-pl0-gentoo


Updated by Jacob Floyd over 9 years ago

Or perhaps what's really wanted is Http\RequestHandler?

use TYPO3\FLOW3\Http\Request is in this file, so maybe the Http stuff is what we want in this case, and not the ActionRequest. Then again, I don't quite understand all the Http changes, so I'm just guessing.


Updated by Karsten Dambekalns over 9 years ago

  • Status changed from New to Resolved
  • Assignee set to Karsten Dambekalns
  • % Done changed from 0 to 100

Solved by now.

Also available in: Atom PDF