From 2689caad9b25483617cb3a53f355dcf0930746fe Mon Sep 17 00:00:00 2001 From: Scott Robertson Date: Mon, 28 Apr 2014 11:40:32 +0100 Subject: [PATCH] Add integer test --- tests/FactoryMuffTest.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/FactoryMuffTest.php b/tests/FactoryMuffTest.php index 80f3c15..0dd55ff 100644 --- a/tests/FactoryMuffTest.php +++ b/tests/FactoryMuffTest.php @@ -42,6 +42,16 @@ public function test_date_kind_with_date() $this->assertEquals($obj->created, date('Ymd h:s')); } + public function test_integer() + { + $this->factory->define('SampleModelA', array( + 'number' => 'integer|100', + )); + + $obj = $this->factory->create('SampleModelA'); + $this->assertEquals(100, strlen($obj->number)); + } + public function test_should_create() { $obj = $this->factory->create('SampleModelA');