44
55namespace Codeception \Util \Shared ;
66
7- use ArrayAccess ;
87use Codeception \PHPUnit \TestCase ;
9- use Countable ;
10- use DOMDocument ;
118use PHPUnit \Framework \Assert ;
129use PHPUnit \Framework \Constraint \Constraint as PHPUnitConstraint ;
1310
@@ -17,7 +14,7 @@ trait InheritedAsserts
1714 * Asserts that an array has a specified key.
1815 *
1916 * @param int|string $key
20- * @param array|ArrayAccess $array
17+ * @param array|\ ArrayAccess $array
2118 */
2219 protected function assertArrayHasKey ($ key , $ array , string $ message = '' )
2320 {
@@ -28,7 +25,7 @@ protected function assertArrayHasKey($key, $array, string $message = '')
2825 * Asserts that an array does not have a specified key.
2926 *
3027 * @param int|string $key
31- * @param array|ArrayAccess $array
28+ * @param array|\ ArrayAccess $array
3229 */
3330 protected function assertArrayNotHasKey ($ key , $ array , string $ message = '' )
3431 {
@@ -104,7 +101,7 @@ protected function assertContainsOnlyInstancesOf(string $className, iterable $ha
104101 /**
105102 * Asserts the number of elements of an array, Countable or Traversable.
106103 *
107- * @param Countable|iterable $haystack
104+ * @param \ Countable|iterable $haystack
108105 */
109106 protected function assertCount (int $ expectedCount , $ haystack , string $ message = '' )
110107 {
@@ -773,7 +770,7 @@ protected function assertNotContainsOnly(string $type, iterable $haystack, ?bool
773770 /**
774771 * Asserts the number of elements of an array, Countable or Traversable.
775772 *
776- * @param Countable|iterable $haystack
773+ * @param \ Countable|iterable $haystack
777774 */
778775 protected function assertNotCount (int $ expectedCount , $ haystack , string $ message = '' )
779776 {
@@ -878,8 +875,8 @@ protected function assertNotSame($expected, $actual, string $message = '')
878875 /**
879876 * Assert that the size of two arrays (or `Countable` or `Traversable` objects) is not the same.
880877 *
881- * @param Countable|iterable $expected
882- * @param Countable|iterable $actual
878+ * @param \ Countable|iterable $expected
879+ * @param \ Countable|iterable $actual
883880 */
884881 protected function assertNotSameSize ($ expected , $ actual , string $ message = '' )
885882 {
@@ -936,8 +933,8 @@ protected function assertSame($expected, $actual, string $message = '')
936933 /**
937934 * Assert that the size of two arrays (or `Countable` or `Traversable` objects) is the same.
938935 *
939- * @param Countable|iterable $expected
940- * @param Countable|iterable $actual
936+ * @param \ Countable|iterable $expected
937+ * @param \ Countable|iterable $actual
941938 */
942939 protected function assertSameSize ($ expected , $ actual , string $ message = '' )
943940 {
@@ -1115,7 +1112,7 @@ protected function assertXmlFileNotEqualsXmlFile(string $expectedFile, string $a
11151112 /**
11161113 * Asserts that two XML documents are equal.
11171114 *
1118- * @param DOMDocument|string $actualXml
1115+ * @param \ DOMDocument|string $actualXml
11191116 */
11201117 protected function assertXmlStringEqualsXmlFile (string $ expectedFile , $ actualXml , string $ message = '' )
11211118 {
@@ -1125,8 +1122,8 @@ protected function assertXmlStringEqualsXmlFile(string $expectedFile, $actualXml
11251122 /**
11261123 * Asserts that two XML documents are equal.
11271124 *
1128- * @param DOMDocument|string $expectedXml
1129- * @param DOMDocument|string $actualXml
1125+ * @param \ DOMDocument|string $expectedXml
1126+ * @param \ DOMDocument|string $actualXml
11301127 */
11311128 protected function assertXmlStringEqualsXmlString ($ expectedXml , $ actualXml , string $ message = '' )
11321129 {
@@ -1136,7 +1133,7 @@ protected function assertXmlStringEqualsXmlString($expectedXml, $actualXml, stri
11361133 /**
11371134 * Asserts that two XML documents are not equal.
11381135 *
1139- * @param DOMDocument|string $actualXml
1136+ * @param \ DOMDocument|string $actualXml
11401137 */
11411138 protected function assertXmlStringNotEqualsXmlFile (string $ expectedFile , $ actualXml , string $ message = '' )
11421139 {
@@ -1146,8 +1143,8 @@ protected function assertXmlStringNotEqualsXmlFile(string $expectedFile, $actual
11461143 /**
11471144 * Asserts that two XML documents are not equal.
11481145 *
1149- * @param DOMDocument|string $expectedXml
1150- * @param DOMDocument|string $actualXml
1146+ * @param \ DOMDocument|string $expectedXml
1147+ * @param \ DOMDocument|string $actualXml
11511148 */
11521149 protected function assertXmlStringNotEqualsXmlString ($ expectedXml , $ actualXml , string $ message = '' )
11531150 {
0 commit comments