Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
john committed Nov 1, 2017
1 parent b5f5c8d commit f0cdc79
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions tests/GusApiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,10 @@ class GusApiTest extends PHPUnit_Framework_TestCase
{
public function testLoginGus()
{
$gus = new GusApi("aaaaaabbbbbcccccdddd");
$gus = new GusApi("abcde12345abcde12345");
$this->assertTrue(is_string($gus->login()));
}

public function testGetCaptcha()
{
$gus = new GusApi("aaaaaabbbbbcccccdddd");
$sid = $gus->login();

$this->assertNotEquals(-1, $gus->getCaptcha($sid));
}

/**
* @expectedException GusApi\Exception\InvalidUserKeyException
*/
Expand Down

0 comments on commit f0cdc79

Please sign in to comment.