Skip to content

Issue #10 - Use FQN in PHPDoc type hints for classes and interfaces #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 14 additions & 17 deletions src/Codeception/Util/Shared/InheritedAsserts.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@

namespace Codeception\Util\Shared;

use ArrayAccess;
use Codeception\PHPUnit\TestCase;
use Countable;
use DOMDocument;
use PHPUnit\Framework\Assert;
use PHPUnit\Framework\Constraint\Constraint as PHPUnitConstraint;

Expand All @@ -17,7 +14,7 @@ trait InheritedAsserts
* Asserts that an array has a specified key.
*
* @param int|string $key
* @param array|ArrayAccess $array
* @param array|\ArrayAccess $array
*/
protected function assertArrayHasKey($key, $array, string $message = '')
{
Expand All @@ -28,7 +25,7 @@ protected function assertArrayHasKey($key, $array, string $message = '')
* Asserts that an array does not have a specified key.
*
* @param int|string $key
* @param array|ArrayAccess $array
* @param array|\ArrayAccess $array
*/
protected function assertArrayNotHasKey($key, $array, string $message = '')
{
Expand Down Expand Up @@ -104,7 +101,7 @@ protected function assertContainsOnlyInstancesOf(string $className, iterable $ha
/**
* Asserts the number of elements of an array, Countable or Traversable.
*
* @param Countable|iterable $haystack
* @param \Countable|iterable $haystack
*/
protected function assertCount(int $expectedCount, $haystack, string $message = '')
{
Expand Down Expand Up @@ -773,7 +770,7 @@ protected function assertNotContainsOnly(string $type, iterable $haystack, ?bool
/**
* Asserts the number of elements of an array, Countable or Traversable.
*
* @param Countable|iterable $haystack
* @param \Countable|iterable $haystack
*/
protected function assertNotCount(int $expectedCount, $haystack, string $message = '')
{
Expand Down Expand Up @@ -878,8 +875,8 @@ protected function assertNotSame($expected, $actual, string $message = '')
/**
* Assert that the size of two arrays (or `Countable` or `Traversable` objects) is not the same.
*
* @param Countable|iterable $expected
* @param Countable|iterable $actual
* @param \Countable|iterable $expected
* @param \Countable|iterable $actual
*/
protected function assertNotSameSize($expected, $actual, string $message = '')
{
Expand Down Expand Up @@ -936,8 +933,8 @@ protected function assertSame($expected, $actual, string $message = '')
/**
* Assert that the size of two arrays (or `Countable` or `Traversable` objects) is the same.
*
* @param Countable|iterable $expected
* @param Countable|iterable $actual
* @param \Countable|iterable $expected
* @param \Countable|iterable $actual
*/
protected function assertSameSize($expected, $actual, string $message = '')
{
Expand Down Expand Up @@ -1115,7 +1112,7 @@ protected function assertXmlFileNotEqualsXmlFile(string $expectedFile, string $a
/**
* Asserts that two XML documents are equal.
*
* @param DOMDocument|string $actualXml
* @param \DOMDocument|string $actualXml
*/
protected function assertXmlStringEqualsXmlFile(string $expectedFile, $actualXml, string $message = '')
{
Expand All @@ -1125,8 +1122,8 @@ protected function assertXmlStringEqualsXmlFile(string $expectedFile, $actualXml
/**
* Asserts that two XML documents are equal.
*
* @param DOMDocument|string $expectedXml
* @param DOMDocument|string $actualXml
* @param \DOMDocument|string $expectedXml
* @param \DOMDocument|string $actualXml
*/
protected function assertXmlStringEqualsXmlString($expectedXml, $actualXml, string $message = '')
{
Expand All @@ -1136,7 +1133,7 @@ protected function assertXmlStringEqualsXmlString($expectedXml, $actualXml, stri
/**
* Asserts that two XML documents are not equal.
*
* @param DOMDocument|string $actualXml
* @param \DOMDocument|string $actualXml
*/
protected function assertXmlStringNotEqualsXmlFile(string $expectedFile, $actualXml, string $message = '')
{
Expand All @@ -1146,8 +1143,8 @@ protected function assertXmlStringNotEqualsXmlFile(string $expectedFile, $actual
/**
* Asserts that two XML documents are not equal.
*
* @param DOMDocument|string $expectedXml
* @param DOMDocument|string $actualXml
* @param \DOMDocument|string $expectedXml
* @param \DOMDocument|string $actualXml
*/
protected function assertXmlStringNotEqualsXmlString($expectedXml, $actualXml, string $message = '')
{
Expand Down