diff --git a/doc/conf.py b/doc/conf.py index 832dbe106..3f2278480 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -6,7 +6,7 @@ # Add any Sphinx extension module names here, as strings. They can be extensions # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. -extensions = ['sensio.sphinx.refinclude', 'sensio.sphinx.configurationblock', 'sensio.sphinx.phpcode'] +extensions = ['sensio.sphinx.configurationblock', 'sensio.sphinx.phpcode'] # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] diff --git a/tests/Exclusion/GroupsExclusionStrategyTest.php b/tests/Exclusion/GroupsExclusionStrategyTest.php index e687586d5..3352c9cc5 100644 --- a/tests/Exclusion/GroupsExclusionStrategyTest.php +++ b/tests/Exclusion/GroupsExclusionStrategyTest.php @@ -68,7 +68,7 @@ public function testGroupsFor(array $groups, array $propsVisited, array $resulti } $groupsFor = $exclusion->getGroupsFor($context); - $this->assertEquals($groupsFor, $resultingGroups); + self::assertEquals($groupsFor, $resultingGroups); } public function getGroupsFor() diff --git a/tests/Metadata/ExpressionPropertyMetadataTest.php b/tests/Metadata/ExpressionPropertyMetadataTest.php index 70160d652..1cc5abce2 100644 --- a/tests/Metadata/ExpressionPropertyMetadataTest.php +++ b/tests/Metadata/ExpressionPropertyMetadataTest.php @@ -14,6 +14,6 @@ public function testSerialization() $this->setNonDefaultMetadataValues($meta); $restoredMeta = unserialize(serialize($meta)); - $this->assertEquals($meta, $restoredMeta); + self::assertEquals($meta, $restoredMeta); } } diff --git a/tests/Metadata/PropertyMetadataTest.php b/tests/Metadata/PropertyMetadataTest.php index 24c478357..c50fe0943 100644 --- a/tests/Metadata/PropertyMetadataTest.php +++ b/tests/Metadata/PropertyMetadataTest.php @@ -18,6 +18,6 @@ public function testSerialization() $meta->readOnly = true; $restoredMeta = unserialize(serialize($meta)); - $this->assertEquals($meta, $restoredMeta); + self::assertEquals($meta, $restoredMeta); } } diff --git a/tests/Metadata/StaticPropertyMetadataTest.php b/tests/Metadata/StaticPropertyMetadataTest.php index bba399026..fb5a212fe 100644 --- a/tests/Metadata/StaticPropertyMetadataTest.php +++ b/tests/Metadata/StaticPropertyMetadataTest.php @@ -14,6 +14,6 @@ public function testSerialization() $this->setNonDefaultMetadataValues($meta); $restoredMeta = unserialize(serialize($meta)); - $this->assertEquals($meta, $restoredMeta); + self::assertEquals($meta, $restoredMeta); } } diff --git a/tests/Metadata/VirtualPropertyMetadataTest.php b/tests/Metadata/VirtualPropertyMetadataTest.php index 090b8cb54..3cfeed608 100644 --- a/tests/Metadata/VirtualPropertyMetadataTest.php +++ b/tests/Metadata/VirtualPropertyMetadataTest.php @@ -15,6 +15,6 @@ public function testSerialization() $this->setNonDefaultMetadataValues($meta); $restoredMeta = unserialize(serialize($meta)); - $this->assertEquals($meta, $restoredMeta); + self::assertEquals($meta, $restoredMeta); } } diff --git a/tests/Serializer/BaseSerializationTest.php b/tests/Serializer/BaseSerializationTest.php index 0f4ec3223..7d9d0438f 100644 --- a/tests/Serializer/BaseSerializationTest.php +++ b/tests/Serializer/BaseSerializationTest.php @@ -454,10 +454,10 @@ public function testSimpleInternalObject() $obj = new SimpleInternalObject('foo', 'bar'); - $this->assertEquals($this->getContent('simple_object'), $this->serialize($obj)); + self::assertEquals($this->getContent('simple_object'), $this->serialize($obj)); if ($this->hasDeserializer()) { - $this->assertEquals($obj, $this->deserialize($this->getContent('simple_object'), get_class($obj))); + self::assertEquals($obj, $this->deserialize($this->getContent('simple_object'), get_class($obj))); } } @@ -472,10 +472,10 @@ public function testSimpleObject() public function testSimpleObjectStaticProp() { - $this->assertEquals($this->getContent('simple_object'), $this->serialize($obj = new SimpleObjectWithStaticProp('foo', 'bar'))); + self::assertEquals($this->getContent('simple_object'), $this->serialize($obj = new SimpleObjectWithStaticProp('foo', 'bar'))); if ($this->hasDeserializer()) { - $this->assertEquals($obj, $this->deserialize($this->getContent('simple_object'), get_class($obj))); + self::assertEquals($obj, $this->deserialize($this->getContent('simple_object'), get_class($obj))); } } @@ -1567,15 +1567,15 @@ public function testHandlerInvokedOnPrimitives() GraphNavigatorInterface::DIRECTION_SERIALIZATION, 'Virtual', $this->getFormat(), - function ($visitor, $data) use (&$invoked) { + static function ($visitor, $data) use (&$invoked) { $invoked = true; - $this->assertEquals('foo', $data); + self::assertEquals('foo', $data); return null; } ); $this->serializer->serialize('foo', $this->getFormat(), null, 'Virtual'); - $this->assertTrue($invoked); + self::assertTrue($invoked); } public function getFirstClassListCollectionsValues() diff --git a/tests/Serializer/Doctrine/ObjectConstructorTest.php b/tests/Serializer/Doctrine/ObjectConstructorTest.php index 57ca1dcdf..6e8fdb9b2 100644 --- a/tests/Serializer/Doctrine/ObjectConstructorTest.php +++ b/tests/Serializer/Doctrine/ObjectConstructorTest.php @@ -211,7 +211,7 @@ public function testNamingForIdentifierColumnIsConsidered() /** @var Server $serverDeserialized */ $serverDeserialized = $serializer->deserialize($jsonData, Server::class, 'json'); - static::assertSame( + self::assertSame( $em->getUnitOfWork()->getEntityState($serverDeserialized), UnitOfWork::STATE_MANAGED );