Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 7
CRAP
0.00% covered (danger)
0.00%
0 / 14
MockMetrics
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 7
56
0.00% covered (danger)
0.00%
0 / 14
 timing
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 gauge
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 set
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 2
 increment
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 2
 decrement
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 2
 updateCount
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 2
 produceStatsdData
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 4
<?php
declare( strict_types = 1 );
namespace Wikimedia\Parsoid\Mocks;
use Liuggio\StatsdClient\Entity\StatsdDataInterface;
use Liuggio\StatsdClient\Factory\StatsdDataFactoryInterface;
class MockMetrics implements StatsdDataFactoryInterface {
    /** @inheritDoc */
    public function timing( $key, $time ) {
    }
    /** @inheritDoc */
    public function gauge( $key, $value ) {
    }
    /** @inheritDoc */
    public function set( $key, $value ) {
        return [];
    }
    /** @inheritDoc */
    public function increment( $key ) {
        return [];
    }
    /** @inheritDoc */
    public function decrement( $key ) {
        return [];
    }
    /** @inheritDoc */
    public function updateCount( $key, $delta ) {
        return [];
    }
    /** @inheritDoc */
    public function produceStatsdData(
        $key, $value = 1, $metric = StatsdDataInterface::STATSD_METRIC_COUNT
    ) {
        // @phan-suppress-next-line PhanTypeMismatchReturn FIXME, phan seems right
        return $metric;
    }
}