diff --git a/src/Collection/Collection.php b/src/Collection/Collection.php index ebc3f42..0062c57 100644 --- a/src/Collection/Collection.php +++ b/src/Collection/Collection.php @@ -263,7 +263,7 @@ class Collection implements Countable, ArrayAccess, IteratorAggregate } /** - * Returns an array representation of the collection + * Returns representation of object as array * * @return array */ diff --git a/src/ValueObject/Version.php b/src/ValueObject/Version.php index 8684da0..688dae7 100644 --- a/src/ValueObject/Version.php +++ b/src/ValueObject/Version.php @@ -88,7 +88,7 @@ class Version } /** - * Returns string representation of instance of this class + * Returns representation of object as string * * @return string */ diff --git a/tests/Collection/CollectionTest.php b/tests/Collection/CollectionTest.php index 26a40ff..b2df4aa 100644 --- a/tests/Collection/CollectionTest.php +++ b/tests/Collection/CollectionTest.php @@ -45,12 +45,12 @@ class CollectionTest extends BaseTestCase public function testEmptyCollection() { - static::assertEquals(0, $this->emptyCollection->count()); + static::assertSame(0, $this->emptyCollection->count()); static::assertCount(0, $this->emptyCollection); static::assertEmpty($this->emptyCollection); static::assertTrue($this->emptyCollection->isEmpty()); - static::assertEquals([], $this->emptyCollection->toArray()); + static::assertSame([], $this->emptyCollection->toArray()); static::assertEmpty($this->emptyCollection->toArray()); static::assertNull($this->emptyCollection->getFirst()); @@ -61,23 +61,23 @@ class CollectionTest extends BaseTestCase public function testNotEmptyCollection() { - static::assertEquals(4, $this->simpleCollection->count()); + static::assertSame(4, $this->simpleCollection->count()); static::assertCount(4, $this->simpleCollection); static::assertNotEmpty($this->simpleCollection); static::assertFalse($this->simpleCollection->isEmpty()); - static::assertEquals($this->simpleElements, $this->simpleCollection->toArray()); + static::assertSame($this->simpleElements, $this->simpleCollection->toArray()); static::assertNotEmpty($this->simpleCollection->toArray()); - static::assertEquals('lorem', $this->simpleCollection->getFirst()); - static::assertEquals('sit', $this->simpleCollection->getLast()); - static::assertEquals('dolor', $this->simpleCollection[123]); + static::assertSame('lorem', $this->simpleCollection->getFirst()); + static::assertSame('sit', $this->simpleCollection->getLast()); + static::assertSame('dolor', $this->simpleCollection[123]); } public function testCount() { - static::assertEquals(0, $this->emptyCollection->count()); - static::assertEquals(4, $this->simpleCollection->count()); + static::assertSame(0, $this->emptyCollection->count()); + static::assertSame(4, $this->simpleCollection->count()); } public function testOffsetExists() @@ -94,8 +94,8 @@ class CollectionTest extends BaseTestCase static::assertNull($this->emptyCollection['abc']); static::assertNull($this->simpleCollection['abc']); - static::assertEquals('lorem', $this->simpleCollection[0]); - static::assertEquals('sit', $this->simpleCollection[345]); + static::assertSame('lorem', $this->simpleCollection[0]); + static::assertSame('sit', $this->simpleCollection[345]); } public function testOffsetSet() @@ -104,10 +104,10 @@ class CollectionTest extends BaseTestCase $this->simpleCollection['test2'] = 5678; static::assertTrue($this->emptyCollection->has(1234)); - static::assertEquals(1234, $this->emptyCollection['test1']); + static::assertSame(1234, $this->emptyCollection['test1']); static::assertTrue($this->simpleCollection->has(5678)); - static::assertEquals(5678, $this->simpleCollection['test2']); + static::assertSame(5678, $this->simpleCollection['test2']); } public function testOffsetUnset() @@ -115,14 +115,14 @@ class CollectionTest extends BaseTestCase unset($this->simpleCollection[0]); static::assertFalse($this->simpleCollection->has('lorem')); - static::assertEquals('ipsum', $this->simpleCollection[1]); - static::assertEquals(3, $this->simpleCollection->count()); + static::assertSame('ipsum', $this->simpleCollection[1]); + static::assertSame(3, $this->simpleCollection->count()); unset($this->simpleCollection[123]); static::assertFalse($this->simpleCollection->has('dolor')); - static::assertEquals('ipsum', $this->simpleCollection[1]); - static::assertEquals(2, $this->simpleCollection->count()); + static::assertSame('ipsum', $this->simpleCollection[1]); + static::assertSame(2, $this->simpleCollection->count()); } public function testGetIterator() @@ -143,8 +143,8 @@ class CollectionTest extends BaseTestCase $collection->add($element); static::assertTrue($collection->has($element)); - static::assertEquals($expectedCount, $collection->count()); - static::assertEquals($element, $collection[$expectedIndex]); + static::assertSame($expectedCount, $collection->count()); + static::assertSame($element, $collection[$expectedIndex]); } /** @@ -161,15 +161,15 @@ class CollectionTest extends BaseTestCase $collection->add($element, $index); static::assertTrue($collection->has($element)); - static::assertEquals($expectedCount, $collection->count()); - static::assertEquals($element, $collection[$expectedIndex]); + static::assertSame($expectedCount, $collection->count()); + static::assertSame($element, $collection[$expectedIndex]); } public function testAddMultipleUsingEmptyArray() { $this->emptyCollection->addMultiple([]); - static::assertEquals(0, $this->emptyCollection->count()); + static::assertSame(0, $this->emptyCollection->count()); static::assertTrue($this->emptyCollection->isEmpty()); } @@ -185,12 +185,12 @@ class CollectionTest extends BaseTestCase $this->emptyCollection->addMultiple($elements); static::assertFalse($this->emptyCollection->isEmpty()); - static::assertEquals(4, $this->emptyCollection->count()); + static::assertSame(4, $this->emptyCollection->count()); - static::assertEquals('test1', $this->emptyCollection[0]); - static::assertEquals('test2', $this->emptyCollection[1]); - static::assertEquals('test3', $this->emptyCollection[2]); - static::assertEquals('test4', $this->emptyCollection[3]); + static::assertSame('test1', $this->emptyCollection[0]); + static::assertSame('test2', $this->emptyCollection[1]); + static::assertSame('test3', $this->emptyCollection[2]); + static::assertSame('test4', $this->emptyCollection[3]); } public function testAddMultipleUsingIndexes() @@ -205,12 +205,12 @@ class CollectionTest extends BaseTestCase $this->emptyCollection->addMultiple($elements, true); static::assertFalse($this->emptyCollection->isEmpty()); - static::assertEquals(4, $this->emptyCollection->count()); + static::assertSame(4, $this->emptyCollection->count()); - static::assertEquals('test1', $this->emptyCollection[0]); - static::assertEquals('test2', $this->emptyCollection[1]); - static::assertEquals('test3', $this->emptyCollection[1234]); - static::assertEquals('test4', $this->emptyCollection[5678]); + static::assertSame('test1', $this->emptyCollection[0]); + static::assertSame('test2', $this->emptyCollection[1]); + static::assertSame('test3', $this->emptyCollection[1234]); + static::assertSame('test4', $this->emptyCollection[5678]); } public function testPrepend() @@ -218,14 +218,14 @@ class CollectionTest extends BaseTestCase $this->emptyCollection->prepend('lorem-ipsum'); static::assertFalse($this->emptyCollection->isEmpty()); - static::assertEquals(1, $this->emptyCollection->count()); - static::assertEquals('lorem-ipsum', $this->emptyCollection[0]); + static::assertSame(1, $this->emptyCollection->count()); + static::assertSame('lorem-ipsum', $this->emptyCollection[0]); $this->simpleCollection->prepend('lorem-ipsum'); static::assertFalse($this->simpleCollection->isEmpty()); - static::assertEquals(5, $this->simpleCollection->count()); - static::assertEquals('lorem-ipsum', $this->simpleCollection[0]); + static::assertSame(5, $this->simpleCollection->count()); + static::assertSame('lorem-ipsum', $this->simpleCollection[0]); } public function testRemoveNotExistingElement() @@ -233,24 +233,24 @@ class CollectionTest extends BaseTestCase $this->emptyCollection->remove('abc'); static::assertTrue($this->emptyCollection->isEmpty()); - static::assertEquals(0, $this->emptyCollection->count()); + static::assertSame(0, $this->emptyCollection->count()); $this->simpleCollection->remove('abc'); static::assertFalse($this->simpleCollection->isEmpty()); - static::assertEquals(4, $this->simpleCollection->count()); + static::assertSame(4, $this->simpleCollection->count()); } public function testRemove() { static::assertFalse($this->simpleCollection->isEmpty()); - static::assertEquals(4, $this->simpleCollection->count()); - static::assertEquals('ipsum', $this->simpleCollection[1]); + static::assertSame(4, $this->simpleCollection->count()); + static::assertSame('ipsum', $this->simpleCollection[1]); $this->simpleCollection->remove('ipsum'); static::assertFalse($this->simpleCollection->isEmpty()); - static::assertEquals(3, $this->simpleCollection->count()); + static::assertSame(3, $this->simpleCollection->count()); static::assertNull($this->simpleCollection[1]); } @@ -290,8 +290,8 @@ class CollectionTest extends BaseTestCase static::assertNull($this->simpleCollection->getPrevious('abc')); static::assertNull($this->simpleCollection->getPrevious('lorem')); - static::assertEquals('lorem', $this->simpleCollection->getPrevious('ipsum')); - static::assertEquals('dolor', $this->simpleCollection->getPrevious('sit')); + static::assertSame('lorem', $this->simpleCollection->getPrevious('ipsum')); + static::assertSame('dolor', $this->simpleCollection->getPrevious('sit')); } public function testGetNext() @@ -300,26 +300,26 @@ class CollectionTest extends BaseTestCase static::assertNull($this->simpleCollection->getNext('abc')); static::assertNull($this->simpleCollection->getNext('sit')); - static::assertEquals('dolor', $this->simpleCollection->getNext('ipsum')); - static::assertEquals('sit', $this->simpleCollection->getNext('dolor')); + static::assertSame('dolor', $this->simpleCollection->getNext('ipsum')); + static::assertSame('sit', $this->simpleCollection->getNext('dolor')); } public function testGetFirst() { static::assertNull($this->emptyCollection->getFirst()); - static::assertEquals('lorem', $this->simpleCollection->getFirst()); + static::assertSame('lorem', $this->simpleCollection->getFirst()); } public function testGetLast() { static::assertNull($this->emptyCollection->getLast()); - static::assertEquals('sit', $this->simpleCollection->getLast()); + static::assertSame('sit', $this->simpleCollection->getLast()); } public function testToArray() { - static::assertEquals([], $this->emptyCollection->toArray()); - static::assertEquals($this->simpleElements, $this->simpleCollection->toArray()); + static::assertSame([], $this->emptyCollection->toArray()); + static::assertSame($this->simpleElements, $this->simpleCollection->toArray()); } public function testExistsVisibilityAndArguments() diff --git a/tests/Exception/Date/UnknownDatePartTypeExceptionTest.php b/tests/Exception/Date/UnknownDatePartTypeExceptionTest.php index 745c481..d60bd4c 100644 --- a/tests/Exception/Date/UnknownDatePartTypeExceptionTest.php +++ b/tests/Exception/Date/UnknownDatePartTypeExceptionTest.php @@ -37,7 +37,7 @@ class UnknownDatePartTypeExceptionTest extends BaseTestCase public function testMessage($unknownDatePart, $value, $expectedMessage) { $exception = UnknownDatePartTypeException::createException($unknownDatePart, $value); - static::assertEquals($expectedMessage, $exception->getMessage()); + static::assertSame($expectedMessage, $exception->getMessage()); } /** diff --git a/tests/Exception/File/EmptyFileExceptionTest.php b/tests/Exception/File/EmptyFileExceptionTest.php index 88aae84..531e0b0 100644 --- a/tests/Exception/File/EmptyFileExceptionTest.php +++ b/tests/Exception/File/EmptyFileExceptionTest.php @@ -35,7 +35,7 @@ class EmptyFileExceptionTest extends BaseTestCase public function testMessage($emptyFilePath, $expectedMessage) { $exception = EmptyFileException::create($emptyFilePath); - static::assertEquals($expectedMessage, $exception->getMessage()); + static::assertSame($expectedMessage, $exception->getMessage()); } /** diff --git a/tests/Exception/File/EmptyFilePathExceptionTest.php b/tests/Exception/File/EmptyFilePathExceptionTest.php index 93cd7ee..35d24d9 100644 --- a/tests/Exception/File/EmptyFilePathExceptionTest.php +++ b/tests/Exception/File/EmptyFilePathExceptionTest.php @@ -28,6 +28,6 @@ class EmptyFilePathExceptionTest extends BaseTestCase public function testConstructorMessage() { $exception = EmptyFilePathException::create(); - static::assertEquals('Path of the file is empty. Did you provide path of proper file?', $exception->getMessage()); + static::assertSame('Path of the file is empty. Did you provide path of proper file?', $exception->getMessage()); } } diff --git a/tests/Exception/File/NotExistingFileExceptionTest.php b/tests/Exception/File/NotExistingFileExceptionTest.php index 21d7999..f0b0dd5 100644 --- a/tests/Exception/File/NotExistingFileExceptionTest.php +++ b/tests/Exception/File/NotExistingFileExceptionTest.php @@ -35,7 +35,7 @@ class NotExistingFileExceptionTest extends BaseTestCase public function testConstructorMessage($notExistingFilePath, $expectedMessage) { $exception = NotExistingFileException::create($notExistingFilePath); - static::assertEquals($expectedMessage, $exception->getMessage()); + static::assertSame($expectedMessage, $exception->getMessage()); } /** diff --git a/tests/Exception/Method/DisabledMethodExceptionTest.php b/tests/Exception/Method/DisabledMethodExceptionTest.php index 81854ce..b2b33cd 100644 --- a/tests/Exception/Method/DisabledMethodExceptionTest.php +++ b/tests/Exception/Method/DisabledMethodExceptionTest.php @@ -37,7 +37,7 @@ class DisabledMethodExceptionTest extends BaseTestCase public function testConstructorMessage($disabledMethod, $alternativeMethod, $expectedMessage) { $exception = DisabledMethodException::create($disabledMethod, $alternativeMethod); - static::assertEquals($expectedMessage, $exception->getMessage()); + static::assertSame($expectedMessage, $exception->getMessage()); } /** diff --git a/tests/Exception/Reflection/CannotResolveClassNameExceptionTest.php b/tests/Exception/Reflection/CannotResolveClassNameExceptionTest.php index 880f09e..b165e12 100644 --- a/tests/Exception/Reflection/CannotResolveClassNameExceptionTest.php +++ b/tests/Exception/Reflection/CannotResolveClassNameExceptionTest.php @@ -38,7 +38,7 @@ class CannotResolveClassNameExceptionTest extends BaseTestCase public function testConstructorMessage($source, $forClass, $expectedMessage) { $exception = CannotResolveClassNameException::create($source, $forClass); - static::assertEquals($expectedMessage, $exception->getMessage()); + static::assertSame($expectedMessage, $exception->getMessage()); } /** diff --git a/tests/Exception/Reflection/MissingChildClassesExceptionTest.php b/tests/Exception/Reflection/MissingChildClassesExceptionTest.php index 3ec9f3a..3771d8b 100644 --- a/tests/Exception/Reflection/MissingChildClassesExceptionTest.php +++ b/tests/Exception/Reflection/MissingChildClassesExceptionTest.php @@ -36,7 +36,7 @@ class MissingChildClassesExceptionTest extends BaseTestCase public function testConstructorMessage($parentClass, $expectedMessage) { $exception = MissingChildClassesException::create($parentClass); - static::assertEquals($expectedMessage, $exception->getMessage()); + static::assertSame($expectedMessage, $exception->getMessage()); } /** diff --git a/tests/Exception/Reflection/TooManyChildClassesExceptionTest.php b/tests/Exception/Reflection/TooManyChildClassesExceptionTest.php index 3360c4c..49cab93 100644 --- a/tests/Exception/Reflection/TooManyChildClassesExceptionTest.php +++ b/tests/Exception/Reflection/TooManyChildClassesExceptionTest.php @@ -37,7 +37,7 @@ class TooManyChildClassesExceptionTest extends BaseTestCase public function testConstructorMessage($parentClass, array $childClasses, $expectedMessage) { $exception = TooManyChildClassesException::create($parentClass, $childClasses); - static::assertEquals($expectedMessage, $exception->getMessage()); + static::assertSame($expectedMessage, $exception->getMessage()); } /** diff --git a/tests/Exception/Regex/IncorrectColorHexLengthExceptionTest.php b/tests/Exception/Regex/IncorrectColorHexLengthExceptionTest.php index 1200995..9abef1b 100644 --- a/tests/Exception/Regex/IncorrectColorHexLengthExceptionTest.php +++ b/tests/Exception/Regex/IncorrectColorHexLengthExceptionTest.php @@ -35,7 +35,7 @@ class IncorrectColorHexLengthExceptionTest extends BaseTestCase public function testConstructorMessage($color, $expectedMessage) { $exception = IncorrectColorHexLengthException::create($color); - static::assertEquals($expectedMessage, $exception->getMessage()); + static::assertSame($expectedMessage, $exception->getMessage()); } /** diff --git a/tests/Exception/Regex/InvalidColorHexValueExceptionTest.php b/tests/Exception/Regex/InvalidColorHexValueExceptionTest.php index 6153f0d..87ce62d 100644 --- a/tests/Exception/Regex/InvalidColorHexValueExceptionTest.php +++ b/tests/Exception/Regex/InvalidColorHexValueExceptionTest.php @@ -35,7 +35,7 @@ class InvalidColorHexValueExceptionTest extends BaseTestCase public function testConstructorMessage($color, $expectedMessage) { $exception = InvalidColorHexValueException::create($color); - static::assertEquals($expectedMessage, $exception->getMessage()); + static::assertSame($expectedMessage, $exception->getMessage()); } /** diff --git a/tests/Exception/Regex/InvalidHtmlAttributesExceptionTest.php b/tests/Exception/Regex/InvalidHtmlAttributesExceptionTest.php index f343830..8319283 100644 --- a/tests/Exception/Regex/InvalidHtmlAttributesExceptionTest.php +++ b/tests/Exception/Regex/InvalidHtmlAttributesExceptionTest.php @@ -35,7 +35,7 @@ class InvalidHtmlAttributesExceptionTest extends BaseTestCase public function testConstructorMessage($htmlAttributes, $expectedMessage) { $exception = InvalidHtmlAttributesException::create($htmlAttributes); - static::assertEquals($expectedMessage, $exception->getMessage()); + static::assertSame($expectedMessage, $exception->getMessage()); } /** diff --git a/tests/Exception/Regex/InvalidUrlExceptionTest.php b/tests/Exception/Regex/InvalidUrlExceptionTest.php index 1670aca..16bc8f5 100644 --- a/tests/Exception/Regex/InvalidUrlExceptionTest.php +++ b/tests/Exception/Regex/InvalidUrlExceptionTest.php @@ -35,7 +35,7 @@ class InvalidUrlExceptionTest extends BaseTestCase public function testConstructorMessage($url, $expectedMessage) { $exception = InvalidUrlException::create($url); - static::assertEquals($expectedMessage, $exception->getMessage()); + static::assertSame($expectedMessage, $exception->getMessage()); } /** diff --git a/tests/Exception/Type/UnknownOopVisibilityTypeExceptionTest.php b/tests/Exception/Type/UnknownOopVisibilityTypeExceptionTest.php index e958a97..df508e2 100644 --- a/tests/Exception/Type/UnknownOopVisibilityTypeExceptionTest.php +++ b/tests/Exception/Type/UnknownOopVisibilityTypeExceptionTest.php @@ -36,7 +36,7 @@ class UnknownOopVisibilityTypeExceptionTest extends BaseTestCase public function testConstructorMessage($unknownType, $expectedMessage) { $exception = UnknownOopVisibilityTypeException::createException($unknownType); - static::assertEquals($expectedMessage, $exception->getMessage()); + static::assertSame($expectedMessage, $exception->getMessage()); } /** diff --git a/tests/Utilities/Arrays/SimpleToString.php b/tests/Utilities/Arrays/SimpleToString.php index 04bec45..16ec4d0 100644 --- a/tests/Utilities/Arrays/SimpleToString.php +++ b/tests/Utilities/Arrays/SimpleToString.php @@ -35,7 +35,9 @@ class SimpleToString } /** - * {@inheritdoc} + * Returns representation of object as string + * + * @return string */ public function __toString() { diff --git a/tests/Utilities/ReflectionTest.php b/tests/Utilities/ReflectionTest.php index 8763716..f4c5261 100644 --- a/tests/Utilities/ReflectionTest.php +++ b/tests/Utilities/ReflectionTest.php @@ -410,7 +410,7 @@ class ReflectionTest extends BaseTestCase public function testGetMaxNumberConstant() { - static::assertEquals(5, Reflection::getMaxNumberConstant(H::class)); + static::assertSame(5, Reflection::getMaxNumberConstant(H::class)); } public function testHasMethodUsingClassWithoutMethod() @@ -450,7 +450,7 @@ class ReflectionTest extends BaseTestCase public function testGetConstantValue() { - static::assertEquals(H::LOREM, Reflection::getConstantValue(H::class, 'LOREM')); + static::assertSame(H::LOREM, Reflection::getConstantValue(H::class, 'LOREM')); } public function testIsInterfaceImplementedUsingClassWithoutInterface() @@ -484,7 +484,7 @@ class ReflectionTest extends BaseTestCase static::assertInstanceOf(ReflectionProperty::class, $property); static::assertTrue($property->isPrivate()); - static::assertEquals('count', $property->getName()); + static::assertSame('count', $property->getName()); } public function testGetPropertyUsingClassWithProtectedProperty() @@ -493,7 +493,7 @@ class ReflectionTest extends BaseTestCase static::assertInstanceOf(ReflectionProperty::class, $property); static::assertTrue($property->isProtected()); - static::assertEquals('name', $property->getName()); + static::assertSame('name', $property->getName()); } /** diff --git a/tests/Utilities/RepositoryTest.php b/tests/Utilities/RepositoryTest.php index 0ccedd4..97a7b2b 100644 --- a/tests/Utilities/RepositoryTest.php +++ b/tests/Utilities/RepositoryTest.php @@ -36,7 +36,7 @@ class RepositoryTest extends BaseTestCase $items = []; Repository::replenishPositions($items); - static::assertEquals([], $items); + static::assertSame([], $items); } public function testReplenishPositionsUsingNotSortableObjects() @@ -85,10 +85,10 @@ class RepositoryTest extends BaseTestCase public function testReplenishPositionsUsingArraysWithoutExtremePosition(array $items) { Repository::replenishPositions($items); - static::assertEquals($items, $items); + static::assertSame($items, $items); Repository::replenishPositions($items, false); - static::assertEquals($items, $items); + static::assertSame($items, $items); } /** @@ -101,7 +101,7 @@ class RepositoryTest extends BaseTestCase public function testReplenishPositionsUsingArraysWithoutExtremePositionForce(array $items, $asLast, array $expected) { Repository::replenishPositions($items, $asLast, true); - static::assertEquals($expected, $items); + static::assertSame($expected, $items); } /** @@ -114,7 +114,7 @@ class RepositoryTest extends BaseTestCase public function testReplenishPositionsUsingArraysWithExtremePositionForce(array $items, $asLast, array $expected) { Repository::replenishPositions($items, $asLast, true); - static::assertEquals($expected, $items); + static::assertSame($expected, $items); } /** @@ -124,10 +124,10 @@ class RepositoryTest extends BaseTestCase public function testReplenishPositionsUsingObjectsWithoutExtremePosition(array $items) { Repository::replenishPositions($items); - static::assertEquals($items, $items); + static::assertSame($items, $items); Repository::replenishPositions($items, false); - static::assertEquals($items, $items); + static::assertSame($items, $items); } /** @@ -171,7 +171,7 @@ class RepositoryTest extends BaseTestCase */ public function testGetExtremePositionUsingArraysWithoutExtremePosition(array $items, $max, $expected) { - static::assertEquals($expected, Repository::getExtremePosition($items, $max)); + static::assertSame($expected, Repository::getExtremePosition($items, $max)); } /** @@ -183,7 +183,7 @@ class RepositoryTest extends BaseTestCase */ public function testGetExtremePositionUsingArraysWithExtremePosition(array $items, $max, $expected) { - static::assertEquals($expected, Repository::getExtremePosition($items, $max)); + static::assertSame($expected, Repository::getExtremePosition($items, $max)); } /** @@ -195,7 +195,7 @@ class RepositoryTest extends BaseTestCase */ public function testGetExtremePositionUsingObjectsWithoutExtremePosition(array $items, $max, $expected) { - static::assertEquals($expected, Repository::getExtremePosition($items, $max)); + static::assertSame($expected, Repository::getExtremePosition($items, $max)); } /** @@ -207,7 +207,7 @@ class RepositoryTest extends BaseTestCase */ public function testGetExtremePositionUsingObjectsWithExtremePosition(array $items, $max, $expected) { - static::assertEquals($expected, Repository::getExtremePosition($items, $max)); + static::assertSame($expected, Repository::getExtremePosition($items, $max)); } public function testGetEntityOrderedQueryBuilderUsingDefaults()