[wp-trac] [WordPress Trac] #43218: PHPUnit 7.x support
WordPress Trac
noreply at wordpress.org
Fri Mar 9 04:19:54 UTC 2018
#43218: PHPUnit 7.x support
------------------------------+--------------------
Reporter: ayeshrajans | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.0
Component: Build/Test Tools | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
------------------------------+--------------------
Comment (by netweb):
Replying to [comment:14 netweb]:
> Testing [attachment:43218.2.diff] in Travis CI
>
> * https://github.com/ntwb/wordpress/pull/14
Fails the PHP 5.2 Job: https://travis-
ci.org/ntwb/wordpress/jobs/351128113#L436 (all other jobs pass)
* `Warning: Unexpected character in input: '\' (ASCII=92) state=1 in
/home/travis/build/ntwb/wordpress/tests/phpunit/includes/bootstrap.php on
line 111`
* `Parse error: syntax error, unexpected T_STRING in
/home/travis/build/ntwb/wordpress/tests/phpunit/includes/bootstrap.php on
line 111`
> * https://github.com/ntwb/wordpress/pull/15 (Includes Travis CI update
to use PHPUnit 7.x)
The PHP [https://travis-ci.org/ntwb/wordpress/jobs/351130136#L1304 7.1],
[https://travis-ci.org/ntwb/wordpress/jobs/351130137#L1345 7.2], and
nightly (log unavailable, same reason expected though) with:
* `PHP Fatal error: Declaration of
SpeedTrapListener::addError(PHPUnit_Framework_Test $test, Exception $e,
$time) must be compatible with
PHPUnit\Framework\TestListener::addError(PHPUnit\Framework\Test $test,
Throwable $t, float $time): void in
/home/travis/build/ntwb/wordpress/tests/phpunit/includes/speed-trap-
listener.php on line 7`
* `Fatal error: Declaration of
SpeedTrapListener::addError(PHPUnit_Framework_Test $test, Exception $e,
$time) must be compatible with
PHPUnit\Framework\TestListener::addError(PHPUnit\Framework\Test $test,
Throwable $t, float $time): void in
/home/travis/build/ntwb/wordpress/tests/phpunit/includes/speed-trap-
listener.php on line 7`
There are a bunch of database errors displayed when PHPUnit is invoked for
the PHP 7.1 & 7.2 jobs:
* https://travis-ci.org/ntwb/wordpress/jobs/351130136#L858
* `WordPress database error Table 'wordpress_tests.wptests_options'
doesn't exist for query SELECT autoload FROM wptests_options WHERE
option_name = '_site_transient_update_themes' made by require_once('wp-
settings.php'), register_theme_directory, wp_clean_themes_cache,
delete_site_transient, delete_site_option, delete_network_option,
delete_option`
* These do not 'fail' the job and will need further investigation also
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43218#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list