[TYPO3-dev] 7.6 + phpunit + shell (without the extension)

Jigal van Hemert jigal.van.hemert at typo3.org
Thu Apr 14 18:23:04 CEST 2016


Hi,

On 14/04/2016 11:48, Roman Crescente wrote:
> The internet is nearly empty in this point. I use TYPO3 with Extbase. To
> use the "extension" phpunit for TYPO3 isn't a solution. dont work's
> under 7.6 anymore correctly. How to make an phpunit test localy by shell
> command correctly?
>
> tryed something like this:
> phpunit -c "C:\wamp\www\client\typo3\sysext\Core\Build\UnitTests.xml"
>
> Error:
> Fatal error: Class 'TYPO3\CMS\Core\Tests\UnitTestCase' not found in
> C:\wamp\www\client\typo3\sysext\backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest.php
> on line 24
>
> I set the "TYPO3_PATH_WEB=C:\wamp\www\client\"  (webdirectory of TYPO3
> instance)
>
>
> (I found examples with "cli_dispatch.phpsh" but they're always in
> combination with the extension)

https://wiki.typo3.org/Unit_Testing_TYPO3

This page has quite a bit of information for running unit tests. I 
currently use PhpStorm to run the tests and if I run PhpStorm as 
administrator (elevated admin user) then even the symlink tests work.


-- 
Jigal van Hemert
TYPO3 CMS Active Contributor

TYPO3 .... inspiring people to share!
Get involved: typo3.org



More information about the TYPO3-dev mailing list