Bug #36310

ContextTest broken due to missing ActionRequestHandler

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

Status:
Resolved
Priority:
Should have
Category:
MVC
Target version:
-
Start date:
2012-04-19
Due date:
% Done:

100%

Estimated time:
PHP Version:
5.3
Has patch:
No
Complexity:

Description

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

#1

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.

#2

Updated by Karsten Dambekalns about 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