-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Mark Scherer
committed
Feb 2, 2015
1 parent
d1d92fb
commit 9df781e
Showing
3 changed files
with
41 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
|
||
App::uses('FormShimHelper', 'Shim.View/Helper'); | ||
App::uses('ShimTestCase', 'Shim.TestSuite'); | ||
App::uses('View', 'View'); | ||
|
||
class FormShimHelperTest extends ShimTestCase { | ||
|
||
public function setUp() { | ||
$this->Form = new FormShimHelper(new View(null)); | ||
|
||
parent::setUp(); | ||
} | ||
|
||
/** | ||
* @return void | ||
*/ | ||
public function testEnd() { | ||
$result = $this->Form->end(); | ||
$this->assertSame('</form>', $result); | ||
} | ||
|
||
/** | ||
* @expectedException PHPUNIT_FRAMEWORK_ERROR_DEPRECATED | ||
* @return void | ||
*/ | ||
public function testEndInvalid() { | ||
$this->Form->end('Click me'); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters