Beberlei\Metrics\Tests\Collector\PrometheusTest::testDecrement PHP Method

testDecrement() public method

public testDecrement ( )
    public function testDecrement()
    {
        $gaugeMock = $this->getMockBuilder('\\Prometheus\\Gauge')->disableOriginalConstructor()->getMock();
        $gaugeMock->expects($this->once())->method('dec')->with(array());
        $this->collectorRegistryMock->expects($this->once())->method('getGauge')->with(self::TEST_NAMESPACE, self::TEST_VARIABLE_NAME)->willReturn($gaugeMock);
        $this->collector->decrement(self::TEST_VARIABLE_NAME);
        $this->collector->flush();
    }