Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ composer.lock
.php_cs.cache
/vendor/
/public
.idea/
coverage.xml
results.xml
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ before_script:
- travis_retry composer install --prefer-dist --no-interaction

script:
- vendor/bin/phpunit --coverage-clover=coverage.xml
- composer test-ci

before_install:
- pip install --user codecov

after_success:
- codecov
- codecov
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
"Mpociot\\ApiDoc\\Tests\\": "tests/"
}
},
"scripts": {
"test-ci": "phpunit --coverage-clover=coverage.xml"
},
"extra": {
"laravel": {
"providers": [
Expand Down
2 changes: 1 addition & 1 deletion tests/GenerateDocumentationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ protected function getPackageProviders($app)
public function testConsoleCommandNeedsAPrefixOrRoute()
{
$output = $this->artisan('api:generate');
$this->assertEquals('You must provide either a route prefix or a route or a middleware to generate the documentation.'.PHP_EOL, $output);
$this->assertEquals('You must provide either a route prefix, a route domain, a route or a middleware to generate the documentation.'.PHP_EOL, $output);
}

public function testConsoleCommandDoesNotWorkWithClosure()
Expand Down