Project

General

Profile

PhpStorm and QFQ » History » Version 8

Carsten Rose, 10.01.2024 14:55

1 5 Marc Egger
h1. PhpStorm and QFQ
2 2 Marc Egger
3
{{child_pages}}
4 3 Marc Egger
5 4 Marc Egger
{{toc}}
6
7 3 Marc Egger
h2. Configure Remote Deployment
8
9
!settings-deployment-webwork.png!
10
11
!settings-deployment-webwork-mappings.png!
12
13 7 Marc Egger
h3. Automatically upload changes to server (Convenient):
14
15
!settings-auto-deploy.png!
16
17 3 Marc Egger
h2. Configure Remote Interpreter
18
19
!settings-php.png!
20
21
!settings-CLI-Interpreter-Remote-PHP.png!
22
23
h2. Configure Remote Debug
24
25
!settings-servers-path-mapping.png!
26
27 5 Marc Egger
h2. Configure and Run Remote Phpunit Test
28 3 Marc Egger
29
First manually copy phpunit.phar to some location on the server which you may access (NOT into extension directory! Safety hazard!)
30
31
Then configure remote unittesting on in PhpStorm:
32 1 Marc Egger
33
!settings-phpunit-remote.png!
34 5 Marc Egger
35 6 Marc Egger
h3. Run Tests
36
37 5 Marc Egger
To run all the tests: run phpunit.xml which is located in the extension folder (right click -> run)
38
Run tests with code coverage: run phpunit.xml with Coverage (right click -> green arrow with shield)
39
Run only one test class: directly run that class (right click -> run)
40 8 Carsten Rose
41
h1. Issues
42
43
h2. Debugging: PhpStorms always shows sources for `typo3_src/index.php` from an outdated T3 version.
44
45
* Happens to PG (thinlinc environment) on Docker U22 installation on webwork20 after migration from a U20 docker to U22.
46
* We've checked 'Settings > Directories' and 'Debug > ... > path mappings' - all occurences ofT3 V10 (old and unwanted) has been removed. 
47
* Creating new 'debug profile' and new 'server/path mapping profile' helped.
48
* Restarting PhpStorm did not helped
49
* Renamed the T3 V10 source folder so that PhpStorm could not access it anymore - than the PS asked for a new path and than we're able to define the new version.
50
* Problem solved.