Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing php.ini values - "option --d doesn't allow an argument Fatal error: Command failed" #25

Open
ntwb opened this issue Feb 27, 2014 · 0 comments

Comments

@ntwb
Copy link

ntwb commented Feb 27, 2014

I'm trying to parse a PHP constant to grunt-phpunit using options d:

Specifically I am trying to add this:
<const name="WP_TESTS_MULTISITE" value="1" /> (Source)

My Gruntfile.js looks like this:

phpunit: {
    'default': {
        dir: TESTS_DIR + 'phpunit/testcases/',
        configuration: 'phpunit.xml',
    },
    multisite: {
        dir: TESTS_DIR + 'phpunit/',
        configuration: TESTS_DIR + 'phpunit/multisite.xml',
        d: WP_TESTS_MULTISITE[1],
    },
    options: {
        bin: "phpunit",
        bootstrap: TESTS_DIR + 'phpunit/bootstrap.php',
    }
},

I'm always getting the following error:
option --d doesn't allow an argument Fatal error: Command failed:

The PHPUnit docs Setting PHP INI settings, Constants and Global Variables

Per the PHPUnit docs Command-Line switches I should be able to do:
-d key[=value]

I could be getting the syntax incorrect but have tried various combinations to no avail.

michbuett pushed a commit to michbuett/grunt-phpunit that referenced this issue Sep 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant