EventBusCollector

The event bus collector listen to events on the Vert.x event bus and translate them into reports.

package

Default

Methods

__construct

__construct() 

Create a message handler reporting with the specified options. The returned message handler can be registered to an event bus.

create( $arg0,  $arg1) : \io\vertx\jphp\ext\unit\collect\EventBusCollector
static

param $vertx [Vertx] param $options [ReportingOptions | array] the reporting options create($vertx, $options)

param $vertx [Vertx] param $reporter [callable] create($vertx, $reporter)

Arguments

$arg0

Vertx

$arg1

callable | array | ReportingOptions

Response

\io\vertx\jphp\ext\unit\collect\EventBusCollector

the message handler

Register the collector as a consumer of the event bus with the specified address.

register( $arg0) : \io\vertx\jphp\core\eventbus\MessageConsumer

Arguments

$arg0

string

Response

\io\vertx\jphp\core\eventbus\MessageConsumer

the subscribed message consumer

Constants

Json <code>type</code> field value that signals a test suite begins, used as part of the test reporting protocol for the event bus.

EVENT_TEST_SUITE_BEGIN
var

php文件只是为了写代码方便,常量的实际值请参考原java文件

Json <code>type</code> field value that signals a test suite ends, used as part of the test reporting protocol for the event bus.

EVENT_TEST_SUITE_END
var

php文件只是为了写代码方便,常量的实际值请参考原java文件

Json <code>type</code> field value that reports a test suite error, used as part of the test reporting protocol for the event bus.

EVENT_TEST_SUITE_ERROR
var

php文件只是为了写代码方便,常量的实际值请参考原java文件

Json <code>type</code> field value that signals a test case begins, used as part of the test reporting protocol for the event bus.

EVENT_TEST_CASE_BEGIN
var

php文件只是为了写代码方便,常量的实际值请参考原java文件

Json <code>type</code> field value that signals a test case ends, used as part of the test reporting protocol for the event bus.

EVENT_TEST_CASE_END
var

php文件只是为了写代码方便,常量的实际值请参考原java文件