Example #1
0
 /**
  * Activate custom DocBlock annotations along with more-or-less permanent workarounds
  */
 public function registerAnnotations(\Magento\TestFramework\Application $application)
 {
     $eventManager = new \Magento\TestFramework\EventManager($this->_getSubscribers($application));
     \Magento\TestFramework\Event\PhpUnit::setDefaultEventManager($eventManager);
     \Magento\TestFramework\Event\Magento::setDefaultEventManager($eventManager);
 }
Example #2
0
 public function testEndTestDoNotFireEvent()
 {
     $this->_eventManager->expects($this->never())->method('fireEvent');
     $this->_object->endTest(new \PHPUnit_Framework_Warning(), 0);
     $this->_object->endTest($this->getMock('PHPUnit_Framework_Test'), 0);
 }