Opened 11 years ago
Closed 10 years ago
#29843 closed defect (bug) (worksforme)
Can't run tests for themes or plugins when they use PHP sessions
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 4.0 |
| Component: | Build/Test Tools | Keywords: | |
| Focuses: | Cc: |
Description
Because output is generated during the installation in the test phase, themes/plugins that use PHP sessions fail as you can't have any output before you start a session.
The following files generate output.
- tests/phpunit/includes/install.php
- Lines
- 33 - echo "Installing..." . PHP_EOL;
- 50 - echo "Installing network..." . PHP_EOL;
- Lines
- tests/phpunit/includes/bootstrap.php
- Lines
- 56 - echo "Running as multisite..." . PHP_EOL;
- 61 - echo "Running as single site... To run multisite, use -c tests/phpunit/multisite.xml" . PHP_EOL;
- Lines
Change History (2)
Note: See
TracTickets for help on using
tickets.
Start your session in
wp-tests-config.php