Skip to content

Commit

Permalink
Test for #1349
Browse files Browse the repository at this point in the history
  • Loading branch information
sjinks committed Oct 9, 2013
1 parent 56bbf0e commit 41889b2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ext/tests/issue-1349.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
--TEST--
Phalcon\Forms\Form::getMessages() produces PHP error if form is valid - https://github.com/phalcon/cphalcon/issues/1349
--SKIPIF--
<?php include('skipif.inc'); ?>
--FILE--
<?php
$form = new \Phalcon\Forms\Form;
$form->add(new \Phalcon\Forms\Element\Text('name'));
$form->isValid(array('name' => 'John'));
assert(get_class($form->getMessages(false)) == 'Phalcon\Validation\Message\Group');
?>
--EXPECT--

0 comments on commit 41889b2

Please sign in to comment.