Skip to content

Commit fe631e9

Browse files
committed
Add nested type test test as suggested during PR review
1 parent 39c6af7 commit fe631e9

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

WordPress/Tests/Helpers/ContextHelper/IsInTypeTestUnitTest.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ is_array( /* testUnqualifiedFunction */ $value );
2222
Is_Bool( /* testMixedCaseFunction */ $value );
2323
\is_string( /* testFullyQualifiedFunction */ $value );
2424
\IS_NUMERIC( /* testFullyQualifiedUpperCaseFunction */ $value );
25+
is_int( is_float( /* testNestedTypeTestCall */ $value ) );

WordPress/Tests/Helpers/ContextHelper/IsInTypeTestUnitTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ public static function dataIsInTypeTest() {
102102
'testMarker' => '/* testFullyQualifiedUpperCaseFunction */',
103103
'expectedResult' => true,
104104
),
105+
'nested_type_test_call' => array(
106+
'testMarker' => '/* testNestedTypeTestCall */',
107+
'expectedResult' => true,
108+
),
105109
);
106110
}
107111
}

0 commit comments

Comments
 (0)