File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1313 */
1414final class EmptyBaselineMemoryUsageTest extends TestCase
1515{
16- public const TEST_METHOD = 'emptyTest ' ;
16+ public const TEST_METHOD = 'testMemoryBaselineWithEmptyTestBody ' ;
1717 private const ASSERTION_COUNT = 1 ;
1818
1919 /**
@@ -23,7 +23,7 @@ final class EmptyBaselineMemoryUsageTest extends TestCase
2323 * Tests that deviate from this baseline pre/post memory usage are most
2424 * likely leaking.
2525 */
26- public function emptyTest () : void
26+ public function testMemoryBaselineWithEmptyTestBody () : void
2727 {
2828 $ this ->addToAssertionCount (self ::ASSERTION_COUNT );
2929 }
Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ public function testWillRegisterBaselineTestInTestSuite() : void
190190 $ testSuite
191191 ->expects (self ::once ())
192192 ->method ('addTest ' )
193- ->with (self ::equalTo (new Baseline ('emptyTest ' )));
193+ ->with (self ::equalTo (new Baseline ('testMemoryBaselineWithEmptyTestBody ' )));
194194
195195 (new CollectTestExecutionMemoryFootprints ())->startTestSuite ($ testSuite );
196196 }
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ public function testDoesNotProduceMemoryLeaks() : void
2020 // intentional immediate value override - we're offsetting memory usage here, on purpose
2121 $ memoryUsage = memory_get_usage ();
2222
23- $ test ->emptyTest ();
23+ $ test ->testMemoryBaselineWithEmptyTestBody ();
2424
2525 self ::assertSame ($ memoryUsage , memory_get_usage ());
2626 self ::assertSame (1 , $ test ->getNumAssertions ());
You can’t perform that action at this time.
0 commit comments