Opened 12 years ago
Closed 11 years ago
#29843 closed defect (bug) (worksforme)
Can't run tests for themes or plugins when they use PHP sessions
| Reported by: | petervanderdoes | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Build/Test Tools | Version: | 4.0 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Start your session in
wp-tests-config.php