Skip to content

runDependentTest broken by PHPUnit 7.5.5 #5397

@Naktibalda

Description

@Naktibalda

Probably caused by sebastianbergmann/phpunit#3525 which fixed sebastianbergmann/phpunit#3517

https://travis-ci.org/Codeception/Codeception/jobs/493844472

There was 1 failure:
---------
1) RunCest: Run dependent test
 Test  tests/cli/RunCest.php:runDependentTest
 Step  See in shell output "Skipped: 2"
 Fail  Failed asserting that 'Codeception PHP Testing Framework v2.5.3\n
Powered by PHPUnit 7.5.5 by Sebastian Bergmann and contributors.\n
Running with seed:\n
\n
\n
Unit Tests (13) ----------------------------------------------------------------\n
✔ DataProvidersTest: Is triangle | "real triangle" (0.00s)\n
✔ DataProvidersTest: Is triangle | #0 (0.00s)\n
✔ DataProvidersTest: Is triangle | #1 (0.00s)\n
✖ DependsTest: One (0.00s)\n
S DependsTest: Two\n
W Depends2Test: Three\n
✔ DependsTest: Four (0.00s)\n
✔ DependsTest: Three (0.00s)\n
E ErrorTest: Get error (0.00s)\n
E ExceptionTest: Error (0.00s)\n
✖ FailingTest: Me (0.00s)\n
✔ PassingTest: Me (0.00s)\n
W WarningTestCase: Warning (0.00s)\n
--------------------------------------------------------------------------------\n
\n
\n
Time: 140 ms, Memory: 10.00MB\n
\n
There were 2 errors:\n
\n
---------\n
1) ErrorTest: Get error\n
 Test  tests/unit/ErrorTest.php:testGetError\n
\n
  [PHPUnit\Framework\Exception] Array to string conversion\n
\n
#1  /home/travis/build/Codeception/Codeception/tests/data/sandbox/tests/unit/ErrorTest.php:9\n
#2  /home/travis/build/Codeception/Codeception/tests/data/sandbox/tests/unit/ErrorTest.php:32\n
#3  /home/travis/build/Codeception/Codeception/codecept:43\n
\n
---------\n
2) ExceptionTest: Error\n
 Test  tests/unit/ExceptionTest.php:testError\n
\n
  [RuntimeException] Helllo!\n
\n
#1  /home/travis/build/Codeception/Codeception/tests/data/sandbox/tests/unit/ExceptionTest.php:11\n
#2  /home/travis/build/Codeception/Codeception/codecept:43\n
\n
--\n
\n
There were 2 warnings:\n
\n
---------\n
1) Depends2Test: Three\n
 Test  tests/unit/Depends2Test.php:testThree\n
\n
  [PHPUnit\Framework\Warning] This test depends on "Depends2Test::DependsTest:testTwo" which does not exist.\n
\n
#1  /home/travis/build/Codeception/Codeception/codecept:43\n
\n
---------\n
2) WarningTestCase: Warning\n
 Test  ../../../vendor/phpunit/phpunit/src/Framework/WarningTestCase.php:Warning\n
\n
  [PHPUnit\Framework\Warning] The data provider specified for WarningTest::testWarningInvalidDataProvider is invalid.\n
\n
#1  /home/travis/build/Codeception/Codeception/codecept:43\n
\n
--\n
\n
There were 2 failures:\n
\n
---------\n
1) DependsTest: One\n
 Test  tests/unit/DependsTest.php:testOne\n
Failed asserting that false is true.\n
#1  /home/travis/build/Codeception/Codeception/tests/data/sandbox/tests/unit/DependsTest.php:34\n
#2  /home/travis/build/Codeception/Codeception/codecept:43\n
\n
---------\n
2) FailingTest: Me\n
 Test  tests/unit/FailingTest.php:testMe\n
Failed asserting that true is false.\n
#1  /home/travis/build/Codeception/Codeception/tests/data/sandbox/tests/unit/FailingTest.php:7\n
#2  /home/travis/build/Codeception/Codeception/codecept:43\n
\n
ERRORS!\n
Tests: 13, Assertions: 8, Errors: 2, Failures: 2, Warnings: 2, Skipped: 1.\n
run with `-v` to get more info about skipped or incomplete tests' contains "Skipped: 2".
Scenario Steps:
 5. $I->seeInShellOutput("Skipped: 2") at tests/cli/RunCest.php:383
 4. $I->executeCommand("run unit --no-exit") at tests/cli/RunCest.php:382
 3. $I->seeInShellOutput("Skipped: 1") at tests/cli/RunCest.php:381
 2. $I->executeCommand("run unit DependsTest --no-exit") at tests/cli/RunCest.php:380
 1. $I->amInPath("tests/data/sandbox") at tests/cli/RunCest.php:7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions