Ejemplo n.º 1
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);
 }
Ejemplo n.º 2
0
 public function testEndTestSuiteDoNothing()
 {
     $this->_eventManager->expects($this->never())->method('fireEvent');
     $this->_adapter->expects($this->never())->method($this->anything());
     $this->_object->endTestSuite();
 }
Ejemplo n.º 3
0
 public function testInitFrontControllerBefore()
 {
     $this->_eventManager->expects($this->once())->method('fireEvent')->with('initFrontControllerBefore');
     $this->_object->initFrontControllerBefore();
 }
Ejemplo n.º 4
0
 public function testInitStoreAfter()
 {
     $this->_eventManager->expects($this->once())->method('fireEvent')->with('initStoreAfter');
     $this->_object->initStoreAfter();
 }