Permalink
Browse files

Prevent IDE from highlighting "errors"

  • Loading branch information...
1 parent 560af95 commit eca7fae374c4980c4e49e0bc71a6823f6c43157e @sad-spirit sad-spirit committed Apr 13, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 tests/QuickForm2/FactoryTest.php
View
2 tests/QuickForm2/FactoryTest.php
@@ -150,6 +150,7 @@ public function testCreateElementInvalidFile()
public function testCreateElementValid()
{
HTML_QuickForm2_Factory::registerElement('fakeelement', 'FakeElement', dirname(__FILE__) . '/_files/FakeElement.php');
+ /* @var $el FakeElement */
$el = HTML_QuickForm2_Factory::createElement('fakeelement',
'fake', 'attributes', array('options' => '', 'label' => 'fake label'));
$this->assertInstanceOf('FakeElement', $el);
@@ -231,6 +232,7 @@ public function testCreateRuleValid()
HTML_QuickForm2_Factory::registerRule(
'fakerule', 'FakeRule', dirname(__FILE__) . '/_files/FakeRule.php'
);
+ /* @var $rule FakeRule */
$rule = HTML_QuickForm2_Factory::createRule(
'fakerule', $mockNode, 'An error message', 'Some options'
);

0 comments on commit eca7fae

Please sign in to comment.