Skip to content

Commit

Permalink
Exceptionが発生するかテストを実装
Browse files Browse the repository at this point in the history
  • Loading branch information
polidog committed Dec 24, 2014
1 parent 6f24e23 commit dff3c2d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/ClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@ public function selectApiObjects($apiName, $apiObjectName)
$actual = $client->api($apiName);
$this->assertInstanceOf($apiObjectName, $actual);
}

/**
* @test
* @expectedException Polidog\Chatwork\Exception\NoSupportApiException
*/
public function noApiObject()
{
$client = new Client('apikeytoken', []);
$client->api('hoge');
}


public function dp_apiNames()
Expand Down

0 comments on commit dff3c2d

Please sign in to comment.