/** * Test description. * * @return void */ public function testEndOfTestCase() { $this->expectEvent(BrowserTestCase::TEST_SUITE_ENDED_EVENT); /* @var $session_strategy ISessionStrategy */ $session_strategy = m::mock(self::SESSION_STRATEGY_INTERFACE); $test_case = new WithoutBrowserConfig(); $test_case->setEventDispatcher($this->eventDispatcher); $test_case->setSessionStrategy($session_strategy); $this->assertSame($test_case, $test_case->onTestSuiteEnded()); }