Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
GarbageCleanup.php
Go to the documentation of this file.
1 <?php
7 
8 use PHPUnit\Framework\Test;
9 use PHPUnit\Framework\Warning;
10 
15 class GarbageCleanup implements \PHPUnit\Framework\TestListener
16 {
22  public function addError(\PHPUnit\Framework\Test $test, \Exception $e, $time)
23  {
24  }
25 
31  public function addFailure(\PHPUnit\Framework\Test $test, \PHPUnit\Framework\AssertionFailedError $e, $time)
32  {
33  }
34 
40  public function addIncompleteTest(\PHPUnit\Framework\Test $test, \Exception $e, $time)
41  {
42  }
43 
49  public function addRiskyTest(\PHPUnit\Framework\Test $test, \Exception $e, $time)
50  {
51  }
52 
58  public function addSkippedTest(\PHPUnit\Framework\Test $test, \Exception $e, $time)
59  {
60  }
61 
66  public function startTestSuite(\PHPUnit\Framework\TestSuite $suite)
67  {
68  }
69 
74  public function endTestSuite(\PHPUnit\Framework\TestSuite $suite)
75  {
76  gc_collect_cycles();
77  }
78 
83  public function startTest(\PHPUnit\Framework\Test $test)
84  {
85  }
86 
91  public function endTest(\PHPUnit\Framework\Test $test, $time)
92  {
93  }
94 
99  public function addWarning(Test $test, Warning $e, $time)
100  {
101  }
102 }
addSkippedTest(\PHPUnit\Framework\Test $test, \Exception $e, $time)
addError(\PHPUnit\Framework\Test $test, \Exception $e, $time)
addRiskyTest(\PHPUnit\Framework\Test $test, \Exception $e, $time)
addFailure(\PHPUnit\Framework\Test $test, \PHPUnit\Framework\AssertionFailedError $e, $time)
addIncompleteTest(\PHPUnit\Framework\Test $test, \Exception $e, $time)