Skip to content

Commit

Permalink
Test case for phalcon#1399
Browse files Browse the repository at this point in the history
  • Loading branch information
sjinks committed Oct 18, 2013
1 parent 3d97044 commit 2491233
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions ext/tests/issue-1399.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
--TEST--
Missing argument 1 for MyEntity::readAttribute() - https://github.com/phalcon/cphalcon/issues/1399
--SKIPIF--
<?php include('skipif.inc'); ?>
--FILE--
<?php

class MyEntity
{
public function readAttribute($attr)
{
return "aaa";
}
}

$validation = new \Phalcon\Validation();
$validation->add('email', new \Phalcon\Validation\Validator\Email());
$validation->bind(new MyEntity(), array());
$validation->validate();
?>
--EXPECT--

0 comments on commit 2491233

Please sign in to comment.