You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicfunctiontestResetInput()
{
$this->_loadDI();
$options = 'some_field_name';
$expected = '<input type="text" name="some_field_name" '
. 'id="some_field_name" value="Wall-E"/>';
Tg::setDefault('some_field_name', 'Wall-E');
$actual = Tg::textField($options);
$this->assertEquals(
$expected,
$actual,
sprintf($this->message, 'resetInput before contains a value')
);
Tg::resetInput();
$expected = '<input type="text" name="some_field_name" '
. 'id="some_field_name" value=""/>';
$this->assertEquals(
$expected,
$actual,
sprintf($this->message, 'resetInput after contains a value')
);
}
The test fails at the second assertion. The result is:
Failed asserting that two strings are equal.
Expected :<input type="text" name="some_field_name" id="some_field_name" value=""/>
Actual :<input type="text" name="some_field_name" id="some_field_name" value="Wall-E"/>
The text was updated successfully, but these errors were encountered:
I am running the following unit test
The text was updated successfully, but these errors were encountered: