2
2
The right events are emitted in the right order for a successful test that has a before-test method that is configured with annotation
3
3
--FILE--
4
4
<?php declare (strict_types=1 );
5
- $ traceFile = tempnam (sys_get_temp_dir (), __FILE__ );
6
-
7
5
$ _SERVER ['argv ' ][] = '--do-not-cache-result ' ;
8
6
$ _SERVER ['argv ' ][] = '--no-configuration ' ;
9
- $ _SERVER ['argv ' ][] = '--no-output ' ;
10
- $ _SERVER ['argv ' ][] = '--log-events-text ' ;
11
- $ _SERVER ['argv ' ][] = $ traceFile ;
7
+ $ _SERVER ['argv ' ][] = '--debug ' ;
12
8
$ _SERVER ['argv ' ][] = __DIR__ . '/../_files/HookMethodsOrderTest.php ' ;
13
9
14
10
require __DIR__ . '/../../bootstrap.php ' ;
15
11
16
12
(new PHPUnit \TextUI \Application )->run ($ _SERVER ['argv ' ]);
17
-
18
- print file_get_contents ($ traceFile );
19
-
20
- unlink ($ traceFile );
21
13
--EXPECTF --
22
14
PHPUnit Started (PHPUnit %s using %s)
23
15
Test Runner Configured
@@ -26,38 +18,38 @@ Test Suite Loaded (1 test)
26
18
Test Runner Started
27
19
Test Suite Sorted
28
20
Test Runner Execution Started (1 test)
29
- Test Suite Started (PHPUnit \DeprecatedAnnotationsTestFixture \HookMethodsOrderTest, 1 test)
30
- Test Preparation Started (PHPUnit \DeprecatedAnnotationsTestFixture \HookMethodsOrderTest::testOne)
31
- Before Test Method Called (PHPUnit \DeprecatedAnnotationsTestFixture \HookMethodsOrderTest::beforeWithPriorityInParent)
32
- Before Test Method Called (PHPUnit \DeprecatedAnnotationsTestFixture \HookMethodsOrderTest::beforeWithPriority)
33
- Before Test Method Called (PHPUnit \DeprecatedAnnotationsTestFixture \HookMethodsOrderTest::beforeInParent)
34
- Before Test Method Called (PHPUnit \DeprecatedAnnotationsTestFixture \HookMethodsOrderTest::beforeFirst)
35
- Before Test Method Called (PHPUnit \DeprecatedAnnotationsTestFixture \HookMethodsOrderTest::beforeSecond)
36
- Before Test Method Called (PHPUnit \DeprecatedAnnotationsTestFixture \HookMethodsOrderTest::setUp)
21
+ Test Suite Started (PHPUnit \TestFixture \HookMethodsOrderTest, 1 test)
22
+ Test Preparation Started (PHPUnit \TestFixture \HookMethodsOrderTest::testOne)
23
+ Before Test Method Called (PHPUnit \TestFixture \HookMethodsOrderTest::beforeWithPriorityInParent)
24
+ Before Test Method Called (PHPUnit \TestFixture \HookMethodsOrderTest::beforeWithPriority)
25
+ Before Test Method Called (PHPUnit \TestFixture \HookMethodsOrderTest::beforeInParent)
26
+ Before Test Method Called (PHPUnit \TestFixture \HookMethodsOrderTest::beforeFirst)
27
+ Before Test Method Called (PHPUnit \TestFixture \HookMethodsOrderTest::beforeSecond)
28
+ Before Test Method Called (PHPUnit \TestFixture \HookMethodsOrderTest::setUp)
37
29
Before Test Method Finished:
38
- - PHPUnit \DeprecatedAnnotationsTestFixture \HookMethodsOrderTest::beforeWithPriorityInParent
39
- - PHPUnit \DeprecatedAnnotationsTestFixture \HookMethodsOrderTest::beforeWithPriority
40
- - PHPUnit \DeprecatedAnnotationsTestFixture \HookMethodsOrderTest::beforeInParent
41
- - PHPUnit \DeprecatedAnnotationsTestFixture \HookMethodsOrderTest::beforeFirst
42
- - PHPUnit \DeprecatedAnnotationsTestFixture \HookMethodsOrderTest::beforeSecond
43
- - PHPUnit \DeprecatedAnnotationsTestFixture \HookMethodsOrderTest::setUp
44
- Test Prepared (PHPUnit \DeprecatedAnnotationsTestFixture \HookMethodsOrderTest::testOne)
45
- Test Passed (PHPUnit \DeprecatedAnnotationsTestFixture \HookMethodsOrderTest::testOne)
46
- After Test Method Called (PHPUnit \DeprecatedAnnotationsTestFixture \HookMethodsOrderTest::afterWithPriority)
47
- After Test Method Called (PHPUnit \DeprecatedAnnotationsTestFixture \HookMethodsOrderTest::afterWithPriorityInParent)
48
- After Test Method Called (PHPUnit \DeprecatedAnnotationsTestFixture \HookMethodsOrderTest::tearDown)
49
- After Test Method Called (PHPUnit \DeprecatedAnnotationsTestFixture \HookMethodsOrderTest::afterFirst)
50
- After Test Method Called (PHPUnit \DeprecatedAnnotationsTestFixture \HookMethodsOrderTest::afterSecond)
51
- After Test Method Called (PHPUnit \DeprecatedAnnotationsTestFixture \HookMethodsOrderTest::afterInParent)
30
+ - PHPUnit \TestFixture \HookMethodsOrderTest::beforeWithPriorityInParent
31
+ - PHPUnit \TestFixture \HookMethodsOrderTest::beforeWithPriority
32
+ - PHPUnit \TestFixture \HookMethodsOrderTest::beforeInParent
33
+ - PHPUnit \TestFixture \HookMethodsOrderTest::beforeFirst
34
+ - PHPUnit \TestFixture \HookMethodsOrderTest::beforeSecond
35
+ - PHPUnit \TestFixture \HookMethodsOrderTest::setUp
36
+ Test Prepared (PHPUnit \TestFixture \HookMethodsOrderTest::testOne)
37
+ Test Passed (PHPUnit \TestFixture \HookMethodsOrderTest::testOne)
38
+ After Test Method Called (PHPUnit \TestFixture \HookMethodsOrderTest::afterWithPriority)
39
+ After Test Method Called (PHPUnit \TestFixture \HookMethodsOrderTest::afterWithPriorityInParent)
40
+ After Test Method Called (PHPUnit \TestFixture \HookMethodsOrderTest::tearDown)
41
+ After Test Method Called (PHPUnit \TestFixture \HookMethodsOrderTest::afterFirst)
42
+ After Test Method Called (PHPUnit \TestFixture \HookMethodsOrderTest::afterSecond)
43
+ After Test Method Called (PHPUnit \TestFixture \HookMethodsOrderTest::afterInParent)
52
44
After Test Method Finished:
53
- - PHPUnit \DeprecatedAnnotationsTestFixture \HookMethodsOrderTest::afterWithPriority
54
- - PHPUnit \DeprecatedAnnotationsTestFixture \HookMethodsOrderTest::afterWithPriorityInParent
55
- - PHPUnit \DeprecatedAnnotationsTestFixture \HookMethodsOrderTest::tearDown
56
- - PHPUnit \DeprecatedAnnotationsTestFixture \HookMethodsOrderTest::afterFirst
57
- - PHPUnit \DeprecatedAnnotationsTestFixture \HookMethodsOrderTest::afterSecond
58
- - PHPUnit \DeprecatedAnnotationsTestFixture \HookMethodsOrderTest::afterInParent
59
- Test Finished (PHPUnit \DeprecatedAnnotationsTestFixture \HookMethodsOrderTest::testOne)
60
- Test Suite Finished (PHPUnit \DeprecatedAnnotationsTestFixture \HookMethodsOrderTest, 1 test)
45
+ - PHPUnit \TestFixture \HookMethodsOrderTest::afterWithPriority
46
+ - PHPUnit \TestFixture \HookMethodsOrderTest::afterWithPriorityInParent
47
+ - PHPUnit \TestFixture \HookMethodsOrderTest::tearDown
48
+ - PHPUnit \TestFixture \HookMethodsOrderTest::afterFirst
49
+ - PHPUnit \TestFixture \HookMethodsOrderTest::afterSecond
50
+ - PHPUnit \TestFixture \HookMethodsOrderTest::afterInParent
51
+ Test Finished (PHPUnit \TestFixture \HookMethodsOrderTest::testOne)
52
+ Test Suite Finished (PHPUnit \TestFixture \HookMethodsOrderTest, 1 test)
61
53
Test Runner Execution Finished
62
54
Test Runner Finished
63
55
PHPUnit Finished (Shell Exit Code: 0 )
0 commit comments