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]); }
/** * 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)); }
/** * @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)); }