Tokenize sphinx configuration and that's all, folks.
composer require ltd-beget/sphinx-configuration-tokenizer
<?php
use LTDBeget\sphinx\Tokenizer;
require(__DIR__ . '/vendor/autoload.php');
$config_path = realpath(__DIR__."/sphinx/sphinx.conf"); // path to your sphinx conf
$plain_config = file_get_contents($config_path); // or some string with sphinx conf
$tokenized = Tokenizer::tokenize($plain_config); // that's all, folks. All is done =)
$ ./vendor/bin/phpdox
$ wget https://phar.phpunit.de/phpunit.phar
$ php phpunit.phar --coverage-html coverage
$ php phpunit.phar --coverage-clover coverage.xml
released under the MIT License. See the bundled LICENSE file for details.