예제 #1
0
 public function testStatusIsOk()
 {
     if (!class_exists('Liip\\Monitor\\Result\\CheckResult')) {
         $this->markTestSkipped('The class Liip\\Monitor\\Result\\CheckResult does not exist');
     }
     $backend = new PostponeRuntimeBackend($this->getMock('Symfony\\Component\\EventDispatcher\\EventDispatcherInterface'), true);
     $status = $backend->getStatus();
     $this->assertInstanceOf('Liip\\Monitor\\Result\\CheckResult', $status);
     $this->assertEquals(CheckResult::OK, $status->getStatus());
 }
 public function testStatusIsOk()
 {
     if (!class_exists('ZendDiagnostics\\Result\\Success')) {
         $this->markTestSkipped('The class ZendDiagnostics\\Result\\Success does not exist');
     }
     $backend = new PostponeRuntimeBackend($this->getMock('Symfony\\Component\\EventDispatcher\\EventDispatcherInterface'), true);
     $status = $backend->getStatus();
     $this->assertInstanceOf('ZendDiagnostics\\Result\\Success', $status);
 }