/** * @expectedException ActiveRecord\ValidationsArgumentError */ public function test_with_option_as_non_numeric_non_array() { BookLength::$validates_length_of[0]['with'] = 'test'; $book = new BookLength(); $book->name = null; $book->save(); }
/** * @expectedException ActiveRecord\ValidationsArgumentError */ public function testWithOptionAsNonNumericNonArray() { BookLength::$validatesLengthOf[0]['with'] = 'test'; $book = new BookLength(); $book->name = null; $book->save(); }