Skip to content

Commit

Permalink
Upgrade prophet for fixing low dependencies check
Browse files Browse the repository at this point in the history
  • Loading branch information
veewee committed Mar 31, 2016
1 parent 18697ec commit e603aa8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
},
"require-dev": {
"phpspec/phpspec": "~2.5",
"phpspec/prophecy": "~1.6",
"squizlabs/php_codesniffer": "~2.3",
"fabpot/php-cs-fixer": "~1.0",
"phpunit/phpunit": "^4.8",
Expand Down
4 changes: 2 additions & 2 deletions spec/GrumPHP/Locator/ConfigurationFileSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function it_should_locate_config_file(Filesystem $filesystem)
$this->locate('/composer', null)->shouldMatch($this->pathRegex('/composer/grumphp.yml'));
}

function it_should_fall_back_on_dist_fiile(Filesystem $filesystem)
function it_should_fall_back_on_dist_file(Filesystem $filesystem)
{
$filesystem->exists($this->pathArgument('/composer/grumphp.yml'))->willReturn(false);
$filesystem->exists($this->pathArgument('/composer/grumphp.yml.dist'))->willReturn(true);
Expand Down Expand Up @@ -94,7 +94,7 @@ function it_should_locate_config_file_on_empty_composer_configuration(Filesystem

private function pathRegex($expected)
{
return '#^' . str_replace('/', '[\\\/]{1}', $expected) . '$#i';
return '#^' . str_replace(array('.', '/'), array('\.', '[\\\/]{1}'), $expected) . '$#i';
}

private function pathArgument($expected)
Expand Down

0 comments on commit e603aa8

Please sign in to comment.