Google\Cloud\Tests\Logging\MetricTest::testDoesExistFalse PHP Method

testDoesExistFalse() public method

public testDoesExistFalse ( )
    public function testDoesExistFalse()
    {
        $this->connection->getMetric(['metricName' => $this->formattedName])->willThrow(new NotFoundException(null))->shouldBeCalledTimes(1);
        $metric = $this->getMetric($this->connection);
        $this->assertFalse($metric->exists());
    }