4
4
5
5
namespace Codeception \Util \Shared ;
6
6
7
- use ArrayAccess ;
8
7
use Codeception \PHPUnit \TestCase ;
9
- use Countable ;
10
- use DOMDocument ;
11
8
use PHPUnit \Framework \Assert ;
12
9
use PHPUnit \Framework \Constraint \Constraint as PHPUnitConstraint ;
13
10
@@ -17,7 +14,7 @@ trait InheritedAsserts
17
14
* Asserts that an array has a specified key.
18
15
*
19
16
* @param int|string $key
20
- * @param array|ArrayAccess $array
17
+ * @param array|\ ArrayAccess $array
21
18
*/
22
19
protected function assertArrayHasKey ($ key , $ array , string $ message = '' )
23
20
{
@@ -28,7 +25,7 @@ protected function assertArrayHasKey($key, $array, string $message = '')
28
25
* Asserts that an array does not have a specified key.
29
26
*
30
27
* @param int|string $key
31
- * @param array|ArrayAccess $array
28
+ * @param array|\ ArrayAccess $array
32
29
*/
33
30
protected function assertArrayNotHasKey ($ key , $ array , string $ message = '' )
34
31
{
@@ -104,7 +101,7 @@ protected function assertContainsOnlyInstancesOf(string $className, iterable $ha
104
101
/**
105
102
* Asserts the number of elements of an array, Countable or Traversable.
106
103
*
107
- * @param Countable|iterable $haystack
104
+ * @param \ Countable|iterable $haystack
108
105
*/
109
106
protected function assertCount (int $ expectedCount , $ haystack , string $ message = '' )
110
107
{
@@ -773,7 +770,7 @@ protected function assertNotContainsOnly(string $type, iterable $haystack, ?bool
773
770
/**
774
771
* Asserts the number of elements of an array, Countable or Traversable.
775
772
*
776
- * @param Countable|iterable $haystack
773
+ * @param \ Countable|iterable $haystack
777
774
*/
778
775
protected function assertNotCount (int $ expectedCount , $ haystack , string $ message = '' )
779
776
{
@@ -878,8 +875,8 @@ protected function assertNotSame($expected, $actual, string $message = '')
878
875
/**
879
876
* Assert that the size of two arrays (or `Countable` or `Traversable` objects) is not the same.
880
877
*
881
- * @param Countable|iterable $expected
882
- * @param Countable|iterable $actual
878
+ * @param \ Countable|iterable $expected
879
+ * @param \ Countable|iterable $actual
883
880
*/
884
881
protected function assertNotSameSize ($ expected , $ actual , string $ message = '' )
885
882
{
@@ -936,8 +933,8 @@ protected function assertSame($expected, $actual, string $message = '')
936
933
/**
937
934
* Assert that the size of two arrays (or `Countable` or `Traversable` objects) is the same.
938
935
*
939
- * @param Countable|iterable $expected
940
- * @param Countable|iterable $actual
936
+ * @param \ Countable|iterable $expected
937
+ * @param \ Countable|iterable $actual
941
938
*/
942
939
protected function assertSameSize ($ expected , $ actual , string $ message = '' )
943
940
{
@@ -1115,7 +1112,7 @@ protected function assertXmlFileNotEqualsXmlFile(string $expectedFile, string $a
1115
1112
/**
1116
1113
* Asserts that two XML documents are equal.
1117
1114
*
1118
- * @param DOMDocument|string $actualXml
1115
+ * @param \ DOMDocument|string $actualXml
1119
1116
*/
1120
1117
protected function assertXmlStringEqualsXmlFile (string $ expectedFile , $ actualXml , string $ message = '' )
1121
1118
{
@@ -1125,8 +1122,8 @@ protected function assertXmlStringEqualsXmlFile(string $expectedFile, $actualXml
1125
1122
/**
1126
1123
* Asserts that two XML documents are equal.
1127
1124
*
1128
- * @param DOMDocument|string $expectedXml
1129
- * @param DOMDocument|string $actualXml
1125
+ * @param \ DOMDocument|string $expectedXml
1126
+ * @param \ DOMDocument|string $actualXml
1130
1127
*/
1131
1128
protected function assertXmlStringEqualsXmlString ($ expectedXml , $ actualXml , string $ message = '' )
1132
1129
{
@@ -1136,7 +1133,7 @@ protected function assertXmlStringEqualsXmlString($expectedXml, $actualXml, stri
1136
1133
/**
1137
1134
* Asserts that two XML documents are not equal.
1138
1135
*
1139
- * @param DOMDocument|string $actualXml
1136
+ * @param \ DOMDocument|string $actualXml
1140
1137
*/
1141
1138
protected function assertXmlStringNotEqualsXmlFile (string $ expectedFile , $ actualXml , string $ message = '' )
1142
1139
{
@@ -1146,8 +1143,8 @@ protected function assertXmlStringNotEqualsXmlFile(string $expectedFile, $actual
1146
1143
/**
1147
1144
* Asserts that two XML documents are not equal.
1148
1145
*
1149
- * @param DOMDocument|string $expectedXml
1150
- * @param DOMDocument|string $actualXml
1146
+ * @param \ DOMDocument|string $expectedXml
1147
+ * @param \ DOMDocument|string $actualXml
1151
1148
*/
1152
1149
protected function assertXmlStringNotEqualsXmlString ($ expectedXml , $ actualXml , string $ message = '' )
1153
1150
{
0 commit comments