Esempio n. 1
0
    /**
	* @dataProvider providerReverseStringWithoutVowels
	*/
    public function testReverseStringWithoutVowels($expected, $actual)
    {
Esempio n. 2
0
<?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();
}