Skip to content

Commit

Permalink
Merge branch '11.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed May 2, 2024
2 parents 1435782 + 6a17778 commit 6d62909
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/end-to-end/generic/configuration-does-not-exist.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
--TEST--
phpunit --configuration does-not-exist.xml
--FILE--
<?php declare(strict_types=1);
$_SERVER['argv'][] = '--do-not-cache-result';
$_SERVER['argv'][] = '--configuration';
$_SERVER['argv'][] = 'does-not-exist.xml';

require_once __DIR__ . '/../../bootstrap.php';

(new PHPUnit\TextUI\Application)->run($_SERVER['argv']);
--EXPECTF--
PHPUnit %s by Sebastian Bergmann and contributors.

Could not read XML from file "does-not-exist.xml"
29 changes: 29 additions & 0 deletions tests/end-to-end/generic/debug.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
--TEST--
phpunit --debug ../../_files/BankAccountTest.php
--FILE--
<?php declare(strict_types=1);
$_SERVER['argv'][] = '--do-not-cache-result';
$_SERVER['argv'][] = '--no-configuration';
$_SERVER['argv'][] = '--debug';
$_SERVER['argv'][] = __DIR__ . '/../_files/basic/SuccessTest.php';

require_once __DIR__ . '/../../bootstrap.php';

(new PHPUnit\TextUI\Application)->run($_SERVER['argv']);
--EXPECTF--
PHPUnit Started (PHPUnit %s using %s)
Test Runner Configured
Test Suite Loaded (1 test)
Event Facade Sealed
Test Runner Started
Test Suite Sorted
Test Runner Execution Started (1 test)
Test Suite Started (PHPUnit\TestFixture\Basic\SuccessTest, 1 test)
Test Preparation Started (PHPUnit\TestFixture\Basic\SuccessTest::testOne)
Test Prepared (PHPUnit\TestFixture\Basic\SuccessTest::testOne)
Test Passed (PHPUnit\TestFixture\Basic\SuccessTest::testOne)
Test Finished (PHPUnit\TestFixture\Basic\SuccessTest::testOne)
Test Suite Finished (PHPUnit\TestFixture\Basic\SuccessTest, 1 test)
Test Runner Execution Finished
Test Runner Finished
PHPUnit Finished (Shell Exit Code: 0)

0 comments on commit 6d62909

Please sign in to comment.