File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed
src/Symfony/Component/Form/Test Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -25,19 +25,25 @@ abstract class F
8000
ormPerformanceTestCase extends FormIntegrationTestCase
25
25
{
26
26
use VersionAwareTest;
27
27
28
+ private float $ startTime ;
28
29
protected int $ maxRunningTime = 0 ;
29
30
30
- protected function runTest (): mixed
31
+ protected function setUp (): void
31
32
{
32
- $ s = microtime (true );
33
- $ result = parent ::runTest ();
34
- $ time = microtime (true ) - $ s ;
33
+ parent ::setUp ();
34
+
35
+ $ this ->startTime = microtime (true );
36
+ }
37
+
38
+ protected function assertPostConditions (): void
39
+ {
40
+ parent ::assertPostConditions ();
41
+
42
+ $ time = microtime (true ) - $ this ->startTime ;
35
43
<
62E1
/tr>36
44
if (0 != $ this ->maxRunningTime && $ time > $ this ->maxRunningTime ) {
37
45
$ this ->fail (\sprintf ('expected running time: <= %s but was: %s ' , $ this ->maxRunningTime , $ time ));
38
46
}
39
-
40
- return $ result ;
41
47
}
42
48
43
49
/**
You can’t perform that action at this time.
0 commit comments