Simple library that abstracts different metrics collectors. I find this necessary to have a consistent and simple metrics (functional) API that doesn't cause vendor lock-in.
Currently the (Symfony) class DefinitionDecorator is used, which has been renamed to ChildDefinition.
Problem at hand: this new class was only introduced in Symfony 3.3.
This is the most clean, but also a bit of an aggressive solution to this problem: require Symfony 3.3 (or 4.0).
Use ChildDefinition over DefinitionDecorator
Symfony 4 makes services private by default, so had to make some of them public in unit-tests.
Was forced to use PHPUnit\Framework\TestCase over \PHPUnit_Framework_TestCase, since otherwise I was unable to install the later Symfony versions. This makes it compatible with PHPUnit 6, which is nice.
Dropped php 5.4 and 5.5 support since Symfony 3 requires php >= 5.5 and PHPUnit does not include the namespaced TestCase class. Also they did not receive security updates >6 months by now.
Fixes #58.
Currently the (Symfony) class
DefinitionDecorator
is used, which has been renamed toChildDefinition
.Problem at hand: this new class was only introduced in Symfony 3.3.
This is the most clean, but also a bit of an aggressive solution to this problem: require Symfony 3.3 (or 4.0).
ChildDefinition
overDefinitionDecorator
PHPUnit\Framework\TestCase
over\PHPUnit_Framework_TestCase
, since otherwise I was unable to install the later Symfony versions. This makes it compatible with PHPUnit 6, which is nice.TestCase
class. Also they did not receive security updates >6 months by now.An alternative, less aggressive PR can be found at #60.