EventTest
extends TestCase
in package
Attributes
- #[CoversClass]
- \OpenTelemetry\SDK\Trace\Event::class
Table of Contents
Constants
- ATTR_CONT = 2
- DROPPED_ATTR_CONT = 1
- EVENT_NAME = 'test-event'
Properties
- $attributes : AttributesInterface|null
Methods
- test_get_attributes() : void
- test_get_dropped_attributes_count() : void
- test_get_epoch_nanos() : void
- test_get_name() : void
- test_get_total_attribute_count() : void
- createEvent() : Event
- getAttributesInterfaceMock() : AttributesInterface
- getClock() : TestClock
Constants
ATTR_CONT
private
mixed
ATTR_CONT
= 2
DROPPED_ATTR_CONT
private
mixed
DROPPED_ATTR_CONT
= 1
EVENT_NAME
private
mixed
EVENT_NAME
= 'test-event'
Properties
$attributes
private
AttributesInterface|null
$attributes
= null
Methods
test_get_attributes()
public
test_get_attributes() : void
test_get_dropped_attributes_count()
public
test_get_dropped_attributes_count() : void
test_get_epoch_nanos()
public
test_get_epoch_nanos() : void
test_get_name()
public
test_get_name() : void
test_get_total_attribute_count()
public
test_get_total_attribute_count() : void
createEvent()
private
createEvent() : Event
Return values
EventgetAttributesInterfaceMock()
private
getAttributesInterfaceMock() : AttributesInterface
Return values
AttributesInterfacegetClock()
private
getClock() : TestClock