Skip to content

Commit

Permalink
修正单元测试
Browse files Browse the repository at this point in the history
  • Loading branch information
yunwuxin committed Jul 13, 2016
1 parent 7626d64 commit 2b57472
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
},
"require-dev": {
"topthink/framework": "dev-master",
"phpunit/phpunit": "3.*"
"phpunit/phpunit": "4.8.*"
},
"config": {
"preferred-install": "dist"
},
"autoload": {
"psr-4": {
Expand Down
5 changes: 2 additions & 3 deletions tests/InfoTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,13 @@ class InfoTest extends TestCase

public function testOpen()
{
$this->expectException(Exception::class);
$this->setExpectedException(Exception::class);
Image::open('');
}

public function testIllegal()
{
$this->expectException(Exception::class);
$this->expectExceptionMessage('Illegal image file');
$this->setExpectedException(Exception::class, 'Illegal image file');
Image::open(TEST_PATH . 'images/test.bmp');
}

Expand Down

0 comments on commit 2b57472

Please sign in to comment.