ContextTest broken due to missing ActionRequestHandler
|Priority:||Should have||Due date:|
|Assignee:||Karsten Dambekalns||% Done:||
|Has patch:||No||FLOW3 version affected:||Git 1.1|
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 7Thanks to grep, it seems that the only tests that uses an ActionRequestHandler are in Tests/Unit/Security/ContextTest.php:
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 about 1 year 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.