Skip to content

Commit

Permalink
add test for getSession()
Browse files Browse the repository at this point in the history
  • Loading branch information
cweiske committed Mar 11, 2013
1 parent efd5deb commit 60326c3
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/HTML/QuickForm2/Element/CaptchaTest.php
@@ -0,0 +1,17 @@
<?php
require_once 'HTML/QuickForm2/Element/Captcha/Numeral.php';
require_once 'HTML/QuickForm2/Element/Captcha/Session/Mock.php';

class HTML_QuickForm2_Element_CaptchaTest extends PHPUnit_Framework_TestCase
{
public function testGetSession()
{
$c = new HTML_QuickForm2_Element_Captcha_Numeral();
$ses = $c->getSession();
$this->assertInstanceOf(
'HTML_QuickForm2_Element_Captcha_Session', $ses
);
}
}

?>

0 comments on commit 60326c3

Please sign in to comment.