/** * @dataProvider providerReverseStringWithoutVowels */ public function testReverseStringWithoutVowels($expected, $actual) {
<?php try { if (php_sapi_name() != 'cli') { throw new Exception('Script must be run in the command line'); } if ($argc != 2) { throw new Exception('Wrong data'); } require 'Dummy.php'; echo Dummy::reverseStringWithoutVowels($argv[1]); } catch (Exception $e) { echo $e->getMessage(); }