@@ -75,27 +75,14 @@ public static function doNotFireEventDataProvider()
75
75
76
76
public function testStartTestSuiteFireEvent ()
77
77
{
78
- $ this ->_eventManager ->expects ($ this ->once ())->method ('fireEvent ' )->with ('testSuiteStarted ' );
78
+ $ this ->_eventManager ->expects ($ this ->once ())->method ('fireEvent ' )->with ('startTestSuite ' );
79
79
$ this ->_object ->startTestSuite (TestSuite::empty ('TestSuite ' ));
80
80
}
81
-
82
- // public function testStartTestSuiteDoNotFireEvent()
83
- // {
84
- // $this->_eventManager->expects($this->never())->method('fireEvent');
85
- // $this->_object->startTestSuite(new \PHPUnit\Framework\DataProviderTestSuite());
86
- // }
87
- //
88
- // public function testEndTestSuiteFireEvent()
89
- // {
90
- // $this->_eventManager->expects($this->once())->method('fireEvent')->with('endTestSuite');
91
- // $this->_object->endTestSuite(new \PHPUnit\Framework\TestSuite());
92
- // }
93
- //
94
- // public function testEndTestSuiteDoNotFireEvent()
95
- // {
96
- // $this->_eventManager->expects($this->never())->method('fireEvent');
97
- // $this->_object->endTestSuite(new \PHPUnit\Framework\DataProviderTestSuite());
98
- // }
81
+ public function testEndTestSuiteFireEvent ()
82
+ {
83
+ $ this ->_eventManager ->expects ($ this ->once ())->method ('fireEvent ' )->with ('endTestSuite ' );
84
+ $ this ->_object ->endTestSuite (TestSuite::empty ('TestSuite ' ));
85
+ }
99
86
100
87
public function testStartTestFireEvent ()
101
88
{
@@ -106,7 +93,6 @@ public function testStartTestFireEvent()
106
93
public function testStartTestDoNotFireEvent ()
107
94
{
108
95
$ this ->_eventManager ->expects ($ this ->never ())->method ('fireEvent ' );
109
- // $this->_object->startTest(new \PHPUnit\Framework\Warning());
110
96
$ this ->_object ->startTest ($ this ->createMock (\PHPUnit \Framework \Test::class));
111
97
}
112
98
@@ -119,7 +105,6 @@ public function testEndTestFireEvent()
119
105
public function testEndTestDoNotFireEvent ()
120
106
{
121
107
$ this ->_eventManager ->expects ($ this ->never ())->method ('fireEvent ' );
122
- // $this->_object->endTest(new \PHPUnit\Framework\Warning(), 0);
123
108
$ this ->_object ->endTest ($ this ->createMock (\PHPUnit \Framework \Test::class), 0 );
124
109
}
125
110
}
0 commit comments