Project

General

Profile

Bug #7455

PHP Unittests fail in current version

Added by Marc Egger over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Start date:
11.12.2018
Due date:
% Done:

100%

Estimated time:
(Total: 0.00 h)
Discuss:

Subtasks

Feature #7460: Create SetupPhpUnit ClassClosedMarc Egger

Associated revisions

Revision 26ee987f (diff)
Added by Marc Egger over 1 year ago

refs #7455 fix filepath relative to Typo3 dir when running unit test

Revision 89e9bbb8 (diff)
Added by Marc Egger over 1 year ago

refs #7455 fix timeout check throws error since php.ini cookie lifetime is zero during unit test

Revision 2a061253 (diff)
Added by Carsten Rose over 1 year ago

phpunit: fix problems. All tests successful.

History

#1 Updated by Marc Egger over 1 year ago

  • Assignee set to Marc Egger

#2 Updated by Marc Egger over 1 year ago

  • Status changed from New to In Progress

#3 Updated by Marc Egger over 1 year ago

Erledigt:
- Tests aus dem Source Folder raus genommen und direkt ins Extension Folder
- Ordnerstruktur von Tests ist Spiegelung von Source
- bootstrap.php mit autoloader erstellt, bis jetzt nur in Tests benutzt
- phpunit.xml angelegt mit unit test Konfiguration, bootloader verlinkt
- Headder von allen tests vereinheitlicht dank bootloader und phpunit.xml
- Einige Fehler behoben die beim ausfueren der Tests auftraten

#4 Updated by Marc Egger over 1 year ago

Code Coverage Test funktioniert bei carsten nicht

<p>Generic Exception: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time</p>Cannot modify header information - headers already sent by (output started at phar:///usr/share/php/phpunit-7.1.4.phar/phpunit/Util/Printer.php:109)

Process finished with exit code 2

#5 Updated by Carsten Rose over 1 year ago

Tests laufen mittlerweile alle durch

#6 Updated by Marc Egger over 1 year ago

  • Status changed from In Progress to Ready to sync (develop)

#7 Updated by Marc Egger over 1 year ago

  • Status changed from Ready to sync (develop) to Closed

Also available in: Atom PDF