Skip to content

Commit

Permalink
tests/bootstrap: don't re-declare PHPUNIT_RUN
Browse files Browse the repository at this point in the history
This is already set by Nextcloud's bootstrap (and from what I've seen we
require that anyways), so no need to do this on our own.

This also resolves the following warnings from `make test`:

    Warning: Constant PHPUNIT_RUN already defined in /home/ma27/Projects/nextcloud/tests/bootstrap.php on line 7
    PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/ma27/Projects/nextcloud/tests/bootstrap.php:7) in /home/ma27/Projects/nextcloud/lib/private/legacy/OC_Response.php on line 71

Signed-off-by: Maximilian Bosch <[email protected]>
  • Loading branch information
Ma27 committed Oct 7, 2024
1 parent 03cc1db commit f9118d8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
* @author Julien Veyssier <[email protected]>
* @copyright Julien Veyssier 2019
*/
define('PHPUNIT_RUN', 1);

require_once __DIR__.'/../../../tests/bootstrap.php';
require_once __DIR__.'/../../../lib/base.php';
Expand Down

0 comments on commit f9118d8

Please sign in to comment.