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

Edit method param type #1

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
.idea
composer.phar
vendor/
.buildpath
.settings
.project

# Commit your application's lock file http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
# composer.lock
composer.lock
tests/tests/_output/
tests/tests/_support/_generated/
26 changes: 2 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,31 +20,9 @@ If you need an application with a functionality that is similar to the one offer

This project is published in packagist, so you just need to add it as a dependency in your composer.json:

```javascript
"require": {
// ...
"mcustiel/codeception-wiremock-extension": "*"
}
```bash
$ composer require lamoda/codeception-wiremock-extension
```

If you want to access directly to this repo, adding this to your composer.json should be enough:

```javascript
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/mcustiel/codeception-wiremock-extension"
}
],
"require": {
"mcustiel/codeception-wiremock-extension": "dev-master"
}
}
```

Or just download the release and include it in your path.

## Configuration Examples

### Module
Expand Down
11 changes: 6 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,17 @@
"Codeception\\" : "src"
}
},
"name" : "mcustiel/codeception-wiremock-extension",
"name" : "lamoda/codeception-wiremock-extension",
"type" : "library",
"description" : "Wiremock extension for Codeception",
"license" : "GPL-3.0+",
"require" : {
"php" : ">=5.4",
"codeception/codeception" : "^2.1.0",
"wiremock-php/wiremock-php" : "^1.43"
"php" : ">=5.6",
"codeception/codeception" : "^2.0.0 || ^3.0.0 || ^4.0.0",
"wiremock-php/wiremock-php" : "^2.18"
},
"require-dev" : {
"guzzlehttp/guzzle" : ">=4.0 <7.0",
"phing/phing" : "^2.12.0",
"squizlabs/php_codesniffer" : "^2.3.4",
"phpmd/phpmd" : "^2.3.2",
Expand All @@ -37,4 +38,4 @@
"phploc/phploc" : "^2.1.1",
"phpdocumentor/phpdocumentor" : "^2.8.5"
}
}
}
8 changes: 4 additions & 4 deletions src/Module/WireMock.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ public function receivedRequestToWireMock($builderOrCount, RequestPatternBuilder
}

/**
* {@inheritDoc}
* @see \Codeception\Module::_after()
* @param \WireMock\Client\RequestPatternBuilder $builder
* @return \WireMock\Client\LoggedRequest[]
*/
public function _after(TestCase $testCase)
public function findReceivedRequestsToWireMock(RequestPatternBuilder $builder)
{
parent::_after($testCase);
return $this->wireMock->findAll($builder);
}
}
7 changes: 0 additions & 7 deletions tests/codeception.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,3 @@ extensions:
https-port: 18443
logs-path: /tmp
start-delay: 1
modules:
config:
Db:
dsn: ''
user: ''
password: ''
dump: tests/_data/dump.sql
1 change: 0 additions & 1 deletion tests/tests/_data/dump.sql

This file was deleted.

Loading