diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2018-12-03 23:39:50 +0100 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2019-07-08 01:58:06 +0200 |
commit | e9f157ec5ccdfae73b4c9e82c9ae7c37bcfa1513 (patch) | |
tree | fea2fdb1df183008f31f7827d9f83a5f6fc13cfb /tests/Unit/Controllers/Metrics | |
parent | bcce2625a8cb0b630d945c6849014049869e10ce (diff) |
Renderer: Added shared data
Diffstat (limited to 'tests/Unit/Controllers/Metrics')
-rw-r--r-- | tests/Unit/Controllers/Metrics/MetricsEngineTest.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/Unit/Controllers/Metrics/MetricsEngineTest.php b/tests/Unit/Controllers/Metrics/MetricsEngineTest.php index 38817b36..87a7dc88 100644 --- a/tests/Unit/Controllers/Metrics/MetricsEngineTest.php +++ b/tests/Unit/Controllers/Metrics/MetricsEngineTest.php @@ -66,4 +66,15 @@ class MetricsEngineTest extends TestCase $this->assertFalse($engine->canRender('/metrics.foo')); $this->assertTrue($engine->canRender('/metrics')); } + + /** + * @covers \Engelsystem\Controllers\Metrics\MetricsEngine::share + */ + public function testShare() + { + $engine = new MetricsEngine(); + + $engine->share('foo', 42); + $this->assertEquals('', $engine->get('/metrics')); + } } |