コード例 #1
0
 /**
  * This test is weak and may need removal at some point
  * @covers  JInstaller::abort
  *
  * @expectedException  RuntimeException
  */
 public function testAbortDebug()
 {
     $configMock = $this->getMock('test', array('get'));
     $configMock->expects($this->atLeastOnce())->method('get')->with($this->equalTo('debug'))->will($this->returnValue(true));
     JFactory::$config = $configMock;
     $this->assertThat($this->object->abort(), $this->isTrue());
 }