Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yansongda committed Aug 31, 2019
1 parent 7489e9e commit dcba2b5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -24,7 +24,7 @@
"symfony/event-dispatcher": "^4.0"
},
"require-dev": {
"phpunit/phpunit": "^6.2",
"phpunit/phpunit": "^7.5",
"mockery/mockery": "^1.2"
},
"autoload": {
Expand Down
3 changes: 1 addition & 2 deletions phpunit.xml.dist
Expand Up @@ -7,8 +7,7 @@
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false">
stopOnFailure="false">
<testsuites>
<testsuite name="Application Test Suite">
<directory>./tests/</directory>
Expand Down
6 changes: 3 additions & 3 deletions tests/PayTest.php
Expand Up @@ -3,7 +3,7 @@
namespace Yansongda\Pay\Tests;

use Yansongda\Pay\Contracts\GatewayApplicationInterface;
use Yansongda\Pay\Exceptions\GatewayException;
use Yansongda\Pay\Exceptions\InvalidGatewayException;
use Yansongda\Pay\Pay;

class PayTest extends TestCase
Expand All @@ -24,8 +24,8 @@ public function testWechatGateway()

public function testFooGateway()
{
$this->expectException(GatewayException::class);
$this->expectExceptionMessage('Gateway [foo] Not Exists');
$this->expectException(InvalidGatewayException::class);
$this->expectExceptionMessage('INVALID_GATEWAY: Gateway [foo] Not Exists');

Pay::foo([]);
}
Expand Down

0 comments on commit dcba2b5

Please sign in to comment.