From 2491233d29a09184c5802df120a4eb25a8f85fbc Mon Sep 17 00:00:00 2001 From: Vladimir Kolesnikov Date: Fri, 18 Oct 2013 18:54:11 +0300 Subject: [PATCH] Test case for #1399 --- ext/tests/issue-1399.phpt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 ext/tests/issue-1399.phpt diff --git a/ext/tests/issue-1399.phpt b/ext/tests/issue-1399.phpt new file mode 100644 index 00000000000..b3b1308f769 --- /dev/null +++ b/ext/tests/issue-1399.phpt @@ -0,0 +1,21 @@ +--TEST-- +Missing argument 1 for MyEntity::readAttribute() - https://github.com/phalcon/cphalcon/issues/1399 +--SKIPIF-- + +--FILE-- +add('email', new \Phalcon\Validation\Validator\Email()); +$validation->bind(new MyEntity(), array()); +$validation->validate(); +?> +--EXPECT--