File tree 21 files changed +22
-51
lines changed
tests/integration/Filter/Validation
21 files changed +22
-51
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ class AddCest
27
27
* @author Sid Roberts <https://github.com/SidRoberts>
28
28
* @since 2019-05-27
29
29
*/
30
- public function filterValidationAdd (IntegrationTester $ I )
30
+ public function filterValidationAdd (IntegrationTester $ I ): void
31
31
{
32
32
$ I ->wantToTest ('Validation - add() ' );
33
33
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ class AllowEmptyCest
25
25
* @author Phalcon Team <team@phalcon.io>
26
26
* @since 2021-11-07
27
27
*/
28
- public function filterValidationAllowEmptyFalse (IntegrationTester $ I )
28
+ public function filterValidationAllowEmptyFalse (IntegrationTester $ I ): void
29
29
{
30
30
$ I ->wantToTest ('Validation - allowEmpty() - false ' );
31
31
@@ -38,7 +38,7 @@ public function filterValidationAllowEmptyFalse(IntegrationTester $I)
38
38
$ I ->assertCount (0 , $ messages );
39
39
}
40
40
41
- public function filterValidationAllowEmptyTrue (IntegrationTester $ I )
41
+ public function filterValidationAllowEmptyTrue (IntegrationTester $ I ): void
42
42
{
43
43
$ I ->wantToTest ('Validation - allowEmpty() - true ' );
44
44
Original file line number Diff line number Diff line change 20
20
use Phalcon \Messages \Messages ;
21
21
use stdClass ;
22
22
23
- /**
24
- * Class AppendMessageCest
25
- */
26
23
class AppendMessageCest
27
24
{
28
25
/**
@@ -31,7 +28,7 @@ class AppendMessageCest
31
28
* @author Phalcon Team <team@phalcon.io>
32
29
* @since 2019-04-16
33
30
*/
34
- public function filterValidationAppendMessage (IntegrationTester $ I )
31
+ public function filterValidationAppendMessage (IntegrationTester $ I ): void
35
32
{
36
33
$ I ->wantToTest ('Validation - appendMessage() ' );
37
34
$ validator = new PresenceOf ();
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ class BindCest
25
25
* @author Sid Roberts <https://github.com/SidRoberts>
26
26
* @since 2019-04-17
27
27
*/
28
- public function filterValidationBind (IntegrationTester $ I )
28
+ public function filterValidationBind (IntegrationTester $ I ): void
29
29
{
30
30
$ I ->wantToTest ('Validation - bind() ' );
31
31
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ class ConstructCest
26
26
* @author Sid Roberts <https://github.com/SidRoberts>
27
27
* @since 2019-05-25
28
28
*/
29
- public function filterValidationConstruct (IntegrationTester $ I )
29
+ public function filterValidationConstruct (IntegrationTester $ I ): void
30
30
{
31
31
$ I ->wantToTest ('Validation - __construct() ' );
32
32
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ class GetDataCest
25
25
* @author Sid Roberts <https://github.com/SidRoberts>
26
26
* @since 2019-04-17
27
27
*/
28
- public function filterValidationGetData (IntegrationTester $ I )
28
+ public function filterValidationGetData (IntegrationTester $ I ): void
29
29
{
30
30
$ I ->wantToTest ('Validation - getData() ' );
31
31
Original file line number Diff line number Diff line change 17
17
use Phalcon \Filter \Validation ;
18
18
use stdClass ;
19
19
20
- /**
21
- * Class GetEntityCest
22
- */
23
20
class GetEntityCest
24
21
{
25
22
/**
@@ -28,7 +25,7 @@ class GetEntityCest
28
25
* @author Sid Roberts <https://github.com/SidRoberts>
29
26
* @since 2019-04-17
30
27
*/
31
- public function filterValidationGetEntity (IntegrationTester $ I )
28
+ public function filterValidationGetEntity (IntegrationTester $ I ): void
32
29
{
33
30
$ I ->wantToTest ('Validation - getEntity() ' );
34
31
Original file line number Diff line number Diff line change 20
20
use Phalcon \Messages \Messages ;
21
21
use stdClass ;
22
22
23
- /**
24
- * Class GetMessagesCest
25
- */
26
23
class GetMessagesCest
27
24
{
28
25
/**
@@ -31,7 +28,7 @@ class GetMessagesCest
31
28
* @author Phalcon Team <team@phalcon.io>
32
29
* @since 2019-04-16
33
30
*/
34
- public function filterValidationGetMessages (IntegrationTester $ I )
31
+ public function filterValidationGetMessages (IntegrationTester $ I ): void
35
32
{
36
33
$ I ->wantToTest ('Validation - getMessages() ' );
37
34
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ class GetSetFiltersCest
25
25
* @author Sid Roberts <https://github.com/SidRoberts>
26
26
* @since 2019-05-27
27
27
*/
28
- public function filterValidationGetFilters (IntegrationTester $ I )
28
+ public function filterValidationGetFilters (IntegrationTester $ I ): void
29
29
{
30
30
$ I ->wantToTest ('Validation - getFilters()/setFilters() ' );
31
31
Original file line number Diff line number Diff line change 24
24
use function intval ;
25
25
use function uniqid ;
26
26
27
- /**
28
- */
29
27
class GetSetLabelCest
30
28
{
31
29
/**
@@ -34,7 +32,7 @@ class GetSetLabelCest
34
32
* @author Phalcon Team <team@phalcon.io>
35
33
* @since 2019-04-16
36
34
*/
37
- public function filterValidationGetLabel (IntegrationTester $ I )
35
+ public function filterValidationGetLabel (IntegrationTester $ I ): void
38
36
{
39
37
$ I ->wantToTest ('Validation - getLabel() ' );
40
38
$ validator = new PresenceOf ();
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ class GetSetValidatorsCest
26
26
* @author Sid Roberts <https://github.com/SidRoberts>
27
27
* @since 2019-05-25
28
28
*/
29
- public function filterValidationGetSetValidators (IntegrationTester $ I )
29
+ public function filterValidationGetSetValidators (IntegrationTester $ I ): void
30
30
{
31
31
$ I ->wantToTest ('Validation - getValidators()/setValidators() ' );
32
32
Original file line number Diff line number Diff line change 17
17
use Phalcon \Filter \Validation ;
18
18
use Phalcon \Tests \Models \EntityWithPublic ;
19
19
20
- /**
21
- * Class GetValueByDataCest
22
- */
23
20
class GetValueByDataCest
24
21
{
25
22
public const NAME = 'John Doe ' ;
@@ -30,7 +27,7 @@ class GetValueByDataCest
30
27
* @author Phalcon Team <team@phalcon.io>
31
28
* @since 2021-11-07
32
29
*/
33
- public function filterValidationGetValueByDataArray (IntegrationTester $ I )
30
+ public function filterValidationGetValueByDataArray (IntegrationTester $ I ): void
34
31
{
35
32
$ I ->wantToTest ('Validation - getValueByData() ' );
36
33
@@ -44,7 +41,7 @@ public function filterValidationGetValueByDataArray(IntegrationTester $I)
44
41
$ I ->assertSame ($ data ['name ' ], $ value );
45
42
}
46
43
47
- public function filterValidationGetValueByDataObject (IntegrationTester $ I )
44
+ public function filterValidationGetValueByDataObject (IntegrationTester $ I ): void
48
45
{
49
46
$ I ->wantToTest ('Validation - getValueByData() ' );
50
47
Original file line number Diff line number Diff line change 19
19
use Phalcon \Tests \Models \EntityWithHook ;
20
20
use Phalcon \Tests \Models \EntityWithPublic ;
21
21
22
- /**
23
- * Class GetValueByEntityCest
24
- */
25
22
class GetValueByEntityCest
26
23
{
27
24
public const NAME = 'John Doe ' ;
Original file line number Diff line number Diff line change 15
15
16
16
use IntegrationTester ;
17
17
18
- /**
19
- * Class GetValueCest
20
- */
21
18
class GetValueCest
22
19
{
23
20
/**
@@ -26,7 +23,7 @@ class GetValueCest
26
23
* @author Phalcon Team <team@phalcon.io>
27
24
* @since 2019-04-16
28
25
*/
29
- public function filterValidationGetValue (IntegrationTester $ I )
26
+ public function filterValidationGetValue (IntegrationTester $ I ): void
30
27
{
31
28
$ I ->wantToTest ('Validation - getValue() ' );
32
29
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ class RuleCest
27
27
* @author Sid Roberts <https://github.com/SidRoberts>
28
28
* @since 2019-05-27
29
29
*/
30
- public function filterValidationRule (IntegrationTester $ I )
30
+ public function filterValidationRule (IntegrationTester $ I ): void
31
31
{
32
32
$ I ->wantToTest ('Validation - rule() ' );
33
33
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ class RulesCest
27
27
* @author Sid Roberts <https://github.com/SidRoberts>
28
28
* @since 2019-05-27
29
29
*/
30
- public function filterValidationRules (IntegrationTester $ I )
30
+ public function filterValidationRules (IntegrationTester $ I ): void
31
31
{
32
32
$ I ->wantToTest ('Validation - rules() ' );
33
33
Original file line number Diff line number Diff line change 15
15
16
16
use IntegrationTester ;
17
17
18
- /**
19
- * Class SetDefaultMessagesCest
20
- */
21
18
class SetDefaultMessagesCest
22
19
{
23
20
/**
@@ -26,7 +23,7 @@ class SetDefaultMessagesCest
26
23
* @author Phalcon Team <team@phalcon.io>
27
24
* @since 2019-04-16
28
25
*/
29
- public function filterValidationSetDefaultMessages (IntegrationTester $ I )
26
+ public function filterValidationSetDefaultMessages (IntegrationTester $ I ): void
30
27
{
31
28
$ I ->wantToTest ('Validation - setDefaultMessages() ' );
32
29
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ class SetEntityCest
25
25
* @author Sid Roberts <https://github.com/SidRoberts>
26
26
* @since 2019-04-17
27
27
*/
28
- public function filterValidationSetEntity (IntegrationTester $ I )
28
+ public function filterValidationSetEntity (IntegrationTester $ I ): void
29
29
{
30
30
$ I ->wantToTest ('Validation - setEntity() ' );
31
31
Original file line number Diff line number Diff line change 15
15
16
16
use IntegrationTester ;
17
17
18
- /**
19
- * Class UnderscoreGetCest
20
- */
21
18
class UnderscoreGetCest
22
19
{
23
20
/**
@@ -26,7 +23,7 @@ class UnderscoreGetCest
26
23
* @author Phalcon Team <team@phalcon.io>
27
24
* @since 2019-04-16
28
25
*/
29
- public function filterValidationUnderscoreGet (IntegrationTester $ I )
26
+ public function filterValidationUnderscoreGet (IntegrationTester $ I ): void
30
27
{
31
28
$ I ->wantToTest ('Validation - __get() ' );
32
29
Original file line number Diff line number Diff line change 22
22
23
23
use function date ;
24
24
25
- /**
26
- * Class ValidateCest
27
- */
28
25
class ValidateCest
29
26
{
30
27
/**
@@ -34,7 +31,7 @@ class ValidateCest
34
31
* @since 2016-06-27
35
32
* @issue 10405
36
33
*/
37
- public function filterValidationValidateMessageToNonObject (IntegrationTester $ I )
34
+ public function filterValidationValidateMessageToNonObject (IntegrationTester $ I ): void
38
35
{
39
36
$ myValidator = new PresenceOf ();
40
37
$ validation = new Validation ();
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ class NewInstanceCest
25
25
* @author Phalcon Team <team@phalcon.io>
26
26
* @since 2019-05-18
27
27
*/
28
- public function filterValidationValidatorFactoryNewInstance (IntegrationTester $ I )
28
+ public function filterValidationValidatorFactoryNewInstance (IntegrationTester $ I ): void
29
29
{
30
30
$ I ->wantToTest ('Validation\ValidatorFactory - newInstance() ' );
31
31
You can’t perform that action at this time.
0 commit comments