コード例 #1
0
ファイル: DummyTest.php プロジェクト: sayp/test_job
    /**
	* @dataProvider providerReverseStringWithoutVowels
	*/
    public function testReverseStringWithoutVowels($expected, $actual)
    {
コード例 #2
0
ファイル: simple_cli_script.php プロジェクト: sayp/test_job
<?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();
}