コード例 #1
0
 private function pendingTestCaseEventAssertions(\Exception $exception)
 {
     $events = $this->getMockedLifecycle()->getEvents();
     $event = new TestCasePendingEvent();
     $event->withException($exception);
     $this->assertEquals(1, sizeof($events));
     $this->assertInstanceOf('\\Yandex\\Allure\\Adapter\\Event\\TestCasePendingEvent', $events[0]);
     $this->assertEquals($event, $events[0]);
 }
コード例 #2
0
 /**
  * Incomplete test.
  *
  * @param PHPUnit_Framework_Test $test
  * @param Exception $e
  * @param float $time
  */
 public function addIncompleteTest(PHPUnit_Framework_Test $test, Exception $e, $time)
 {
     $event = new TestCasePendingEvent();
     Allure::lifecycle()->fire($event->withException($e));
 }
コード例 #3
0
 /**
  * @param FailEvent $failEvent
  */
 public function testIncomplete(FailEvent $failEvent)
 {
     $event = new TestCasePendingEvent();
     $e = $failEvent->getFail();
     $message = $e->getMessage();
     $this->getLifecycle()->fire($event->withException($e)->withMessage($message));
 }