Beberlei\Metrics\Tests\FactoryTest::getCreateThrowExceptionIfOptionsAreInvalidTests PHP Method

getCreateThrowExceptionIfOptionsAreInvalidTests() public method

    public function getCreateThrowExceptionIfOptionsAreInvalidTests()
    {
        return array(array('You should specified a host if you specified a port.', 'statsd', array('port' => '1234')), array('You should specified a host and a port if you specified a prefix.', 'statsd', array('prefix' => 'prefix')), array('You should specified a host and a port if you specified a prefix.', 'statsd', array('port' => '1234', 'prefix' => 'prefix')), array('You should specified a host and a port if you specified a prefix.', 'statsd', array('hostname' => 'foobar.com', 'prefix' => 'prefix')), array('You should specified a host if you specified a port.', 'graphite', array('port' => '1234')), array('Hostname is required for zabbix collector.', 'zabbix'), array('Hostname is required for zabbix collector.', 'zabbix', array('hostname', 'foobar.com')), array('You should specified a server if you specified a port.', 'zabbix', array('hostname' => 'foobar.com', 'port' => '1234')), array('Hostname is required for zabbix collector.', 'zabbix_file'), array('Hostname is required for librato collector.', 'librato'), array('No username given for librato collector.', 'librato', array('hostname' => 'foobar.com')), array('No password given for librato collector.', 'librato', array('hostname' => 'foobar.com', 'username' => 'username')), array('connection is required for Doctrine DBAL collector.', 'doctrine_dbal'), array('Missing \'logger\' key with logger service.', 'logger'), array('Missing \'client\' key for InfluxDB collector.', 'influxdb'), array('Missing \'collector_registry\' key for Prometheus collector.', 'prometheus'));
    }