Commit graph

460 commits

Author SHA1 Message Date
Henrique Moody
cd46545855 Small coding standards and docs improvements 2015-10-24 01:32:07 -02:00
Henrique Moody
474afaa2ec Remove "ValidationExceptionInterface" 2015-10-23 09:00:31 -02:00
Henrique Moody
67e072ebd3 Remove "NestedValidationExceptionInterface" 2015-10-23 09:00:18 -02:00
Henrique Moody
04db93bdad Remove prefix "Abstract" of non-abstract classes 2015-10-23 09:00:08 -02:00
Diego Oliveira
70997912eb Create "Imei" rule 2015-10-23 07:53:59 -02:00
Alexandre Gaigalas
84fa389d4c Implements numeric Key/KeyNested Addressing
The Key and KeyNested rules didn't supported numeric
addressing (e.g. `v::key(42);`). This change implements it and
adds new tests for the behavior.
2015-10-22 10:35:58 -02:00
Henrique Moody
19698d6a38 Move rule integration tests do another directory 2015-10-22 03:22:58 -02:00
Henrique Moody
8c9c587597 Improvements and fixes on exceptions
There were some cases when the exceptions was not displayed property
when using nested exception, this commit fix the problem and also
display messages in Markdown list.
2015-10-22 03:01:41 -02:00
Edson Lima
fd6fcd151e Create integration tests for "AllOf" rule 2015-10-21 10:27:22 -02:00
Henrique Moody
03c0bd03de Update message after changing exception properties 2015-10-21 04:14:11 -02:00
Emmerson
29bdb0a9f6 Create "BoolVal" rule 2015-10-21 01:35:05 -03:00
Edson Lima
a281ad03d7 Create integration tests for "Consonant" rule 2015-10-21 01:02:19 -02:00
Henrique Moody
e2b02b9777 Increase code coverage of rules 2015-10-19 14:17:47 -02:00
Emmerson
dddad80f48 Improvements on JSON rule 2015-10-19 11:57:42 -02:00
Danilo Correa
954c0ca133 Create integration tests for "Equals" rule 2015-10-18 19:11:58 -02:00
Guilherme Siani
1c254ab682 Refactor "ArrayVal" rule and add integration tests 2015-10-18 18:50:07 -02:00
João Torquato
f08a1fa9fc Create "ArrayType" rule 2015-10-18 18:01:11 -02:00
Guilherme Siani
767fcaaccf Create "Iterable" rule 2015-10-18 17:27:25 -02:00
Reginaldo Junior
7398588c56 Create "FloatType" rule 2015-10-18 16:57:49 -02:00
Henrique Moody
c84020f7f1 Set timezone for tests that work with dates 2015-10-18 16:22:46 -02:00
Henrique Moody
f0d249346f Complete tests for "AbstractRule" class 2015-10-18 16:22:43 -02:00
Henrique Moody
4a0ca6d8b7 Remove unnecessary tests from "RuleTestCase" class
The tests of `assert()` and `check()` method must be done by the
`AbstractRuleTest` instead.
2015-10-18 15:36:47 -02:00
Henrique Moody
4964d561c4 Rename namespace of *TestCase classes 2015-10-18 14:50:59 -02:00
Justin Hook
4145faab39 Create "CurrencyCode" rule 2015-10-18 14:42:39 -02:00
João Torquato
a3694241f2 Create "Countable" rule 2015-10-18 11:37:50 -02:00
Henrique Moody
9c49dd3bcf Use short array syntax 2015-10-17 22:56:32 -03:00
Rafael-BP
6fb15a697c Create integration tests for "ObjectType" rule 2015-10-17 22:25:35 -03:00
Felipe Martins
cbbf082c15 Increase tests for "CountryCode" rule
- Add alpha-3 and numeric country codes and unit test for it
- Add new integration tests for CountryCode rule alpha-3 and numeric
2015-10-17 22:21:33 -03:00
Edson Lima
31f1f1c25e Create integration tests for "Beetween" rule 2015-10-17 22:16:01 -03:00
Edson Lima
16ad8f804d Create integration tests for "KeyValue" rule 2015-10-17 22:13:45 -03:00
Danilo Correa
5dc5410617 Crete integration tests for "BoolType" rule 2015-10-17 22:09:54 -03:00
Nawarian
85633cd8b0 Create integration tests for "Length" rule 2015-10-17 21:58:25 -03:00
Antonio Spinelli
c6638b9ffb Create integration tests for "When" rule 2015-10-17 21:53:43 -03:00
Antonio Spinelli
b4a9253a03 Create RuleTestCase
It is a abstract test class to provide simple way to test rules and
create a mock rule.
2015-10-17 21:53:03 -03:00
William Espindola
c289b44fe9 Improve integration tests for "Yes" rule 2015-10-17 21:33:40 -03:00
Henrique Moody
59fe72794d Remove integration tests for bank rule 2015-10-17 21:24:47 -03:00
Rogerio Prado de Jesus
b1a86e6065 Create integration tests for "Bank" rule
Thanks @gabriercouto and @marcelgsantos for all the words about how to
make it, you guys are amazing :-D.
2015-10-17 18:16:42 -03:00
Gabriel Rodrigues Couto
3c75524cba Create integration tests for "Alpha" rule 2015-10-17 17:46:21 -03:00
Henrique Moody
87604434cf Fix typo on "callableType_4.phpt" test 2015-10-17 17:33:27 -03:00
Rafael-BP
94e552d60c Create integration tests for "CallableType" rule 2015-10-17 17:16:44 -03:00
Gabriel Rodrigues Couto
d56905aeba Create Integration tests for "Numeric" rule 2015-10-17 17:10:47 -03:00
Reginaldo Junior
311bd1d762 Create integration tests for "CreditCard" rule 2015-10-17 17:06:18 -03:00
Danilo Correa
68b5cbe94a Create integration tests for "Digit" rule 2015-10-17 17:02:46 -03:00
Emmerson
21c2b4361e Creates integration tests for "Ip" rule 2015-10-17 17:00:11 -03:00
William Espindola
86f4822af3 Create integration test for "Bsn" rule 2015-10-17 16:54:10 -03:00
Marcel dos Santos
1e057c7687 Create integration tests for 'StringType' rule 2015-10-17 16:51:58 -03:00
Nawarian
ffd199d2b0 Refactoring unit tests of "Contains" rule 2015-10-17 16:48:17 -03:00
Felipe Martins
141103f085 Improve "CountryCode" rule
Add "alpha-3" and "numeric" country codes and unit test for it.
2015-10-17 16:42:43 -03:00
Guilherme Siani
fe17a2a6d8 Increase integration tests of "Alnum" rule
Created integration tests with extra functions of Alnum rule. Also
remove unecessary asserts from the AlnumTest.
2015-10-17 16:31:41 -03:00
Rafael-BP
4e894a7022 Create integration tests of "Optional" rule 2015-10-17 16:10:28 -03:00