[wp-trac] [WordPress Trac] #29843: Can't run tests for themes or plugins when the use PHP sessions

WordPress Trac noreply at wordpress.org
Thu Oct 2 19:24:16 UTC 2014


#29843: Can't run tests for themes or plugins when the use PHP sessions
-----------------------------+-----------------------------
 Reporter:  petervanderdoes  |      Owner:
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  General          |    Version:  4.0
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 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;

 * 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;

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29843>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list