Skip to content

Commit 6d62909

Browse files
Merge branch '11.1'
2 parents 1435782 + 6a17778 commit 6d62909

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
--TEST--
2+
phpunit --configuration does-not-exist.xml
3+
--FILE--
4+
<?php declare(strict_types=1);
5+
$_SERVER['argv'][] = '--do-not-cache-result';
6+
$_SERVER['argv'][] = '--configuration';
7+
$_SERVER['argv'][] = 'does-not-exist.xml';
8+
9+
require_once __DIR__ . '/../../bootstrap.php';
10+
11+
(new PHPUnit\TextUI\Application)->run($_SERVER['argv']);
12+
--EXPECTF--
13+
PHPUnit %s by Sebastian Bergmann and contributors.
14+
15+
Could not read XML from file "does-not-exist.xml"

tests/end-to-end/generic/debug.phpt

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
--TEST--
2+
phpunit --debug ../../_files/BankAccountTest.php
3+
--FILE--
4+
<?php declare(strict_types=1);
5+
$_SERVER['argv'][] = '--do-not-cache-result';
6+
$_SERVER['argv'][] = '--no-configuration';
7+
$_SERVER['argv'][] = '--debug';
8+
$_SERVER['argv'][] = __DIR__ . '/../_files/basic/SuccessTest.php';
9+
10+
require_once __DIR__ . '/../../bootstrap.php';
11+
12+
(new PHPUnit\TextUI\Application)->run($_SERVER['argv']);
13+
--EXPECTF--
14+
PHPUnit Started (PHPUnit %s using %s)
15+
Test Runner Configured
16+
Test Suite Loaded (1 test)
17+
Event Facade Sealed
18+
Test Runner Started
19+
Test Suite Sorted
20+
Test Runner Execution Started (1 test)
21+
Test Suite Started (PHPUnit\TestFixture\Basic\SuccessTest, 1 test)
22+
Test Preparation Started (PHPUnit\TestFixture\Basic\SuccessTest::testOne)
23+
Test Prepared (PHPUnit\TestFixture\Basic\SuccessTest::testOne)
24+
Test Passed (PHPUnit\TestFixture\Basic\SuccessTest::testOne)
25+
Test Finished (PHPUnit\TestFixture\Basic\SuccessTest::testOne)
26+
Test Suite Finished (PHPUnit\TestFixture\Basic\SuccessTest, 1 test)
27+
Test Runner Execution Finished
28+
Test Runner Finished
29+
PHPUnit Finished (Shell Exit Code: 0)

0 commit comments

Comments
 (0)