Page MenuHomeDevCentral

D4064.diff
No OneTemporary

D4064.diff

diff --git a/omnitools/tests/Registration/PSR4/PSR4NamespaceTest.php b/omnitools/tests/Registration/PSR4/PSR4NamespaceTest.php
--- a/omnitools/tests/Registration/PSR4/PSR4NamespaceTest.php
+++ b/omnitools/tests/Registration/PSR4/PSR4NamespaceTest.php
@@ -19,6 +19,8 @@
const ALL_CLASSES = [
"Acme\\SolarSystemLib\\Sun",
+ "Acme\\SolarSystemLib\\Base\\AstronomicalBody",
+ "Acme\\SolarSystemLib\\Base\\Planet",
"Acme\\SolarSystemLib\\Planets\\Pluton",
"Acme\\SolarSystemLib\\Planets\\Inner\\Mercure",
"Acme\\SolarSystemLib\\Planets\\Inner\\Venus",
diff --git a/omnitools/tests/data/SolarSystemLib/Base/AstronomicalBody.php b/omnitools/tests/data/SolarSystemLib/Base/AstronomicalBody.php
new file mode 100644
--- /dev/null
+++ b/omnitools/tests/data/SolarSystemLib/Base/AstronomicalBody.php
@@ -0,0 +1,7 @@
+<?php
+
+namespace Keruald\OmniTools\Tests\data\SolarSystemLib\Base;
+
+interface AstronomicalBody {
+
+}
diff --git a/omnitools/tests/data/SolarSystemLib/Base/Planet.php b/omnitools/tests/data/SolarSystemLib/Base/Planet.php
new file mode 100644
--- /dev/null
+++ b/omnitools/tests/data/SolarSystemLib/Base/Planet.php
@@ -0,0 +1,9 @@
+<?php
+
+namespace Keruald\OmniTools\Tests\data\SolarSystemLib\Base;
+
+use Keruald\OmniTools\Tests\data\SolarSystemLib\Planets\AstronomicalBody;
+
+abstract class Planet implements AstronomicalBody {
+
+}
diff --git a/omnitools/tests/data/SolarSystemLib/Planets/Inner/Mercure.php b/omnitools/tests/data/SolarSystemLib/Planets/Inner/Mercure.php
--- a/omnitools/tests/data/SolarSystemLib/Planets/Inner/Mercure.php
+++ b/omnitools/tests/data/SolarSystemLib/Planets/Inner/Mercure.php
@@ -3,6 +3,8 @@
namespace Acme\SolarSystemLib\Planets\Inner;
-class Mercure {
+use Keruald\OmniTools\Tests\data\SolarSystemLib\Base\Planet;
+
+class Mercure extends Planet {
}
diff --git a/omnitools/tests/data/SolarSystemLib/Planets/Inner/Venus.php b/omnitools/tests/data/SolarSystemLib/Planets/Inner/Venus.php
--- a/omnitools/tests/data/SolarSystemLib/Planets/Inner/Venus.php
+++ b/omnitools/tests/data/SolarSystemLib/Planets/Inner/Venus.php
@@ -3,6 +3,8 @@
namespace Acme\SolarSystemLib\Planets\Inner;
-class Venus {
+use Keruald\OmniTools\Tests\data\SolarSystemLib\Base\Planet;
+
+class Venus extends Planet {
}
diff --git a/omnitools/tests/data/SolarSystemLib/Planets/Pluton.php b/omnitools/tests/data/SolarSystemLib/Planets/Pluton.php
--- a/omnitools/tests/data/SolarSystemLib/Planets/Pluton.php
+++ b/omnitools/tests/data/SolarSystemLib/Planets/Pluton.php
@@ -3,6 +3,8 @@
namespace Acme\SolarSystemLib\Planets;
-class Pluton {
+use Keruald\OmniTools\Tests\data\SolarSystemLib\Base\Planet;
+
+class Pluton extends Planet {
}
diff --git a/omnitools/tests/data/SolarSystemLib/Sun.php b/omnitools/tests/data/SolarSystemLib/Sun.php
--- a/omnitools/tests/data/SolarSystemLib/Sun.php
+++ b/omnitools/tests/data/SolarSystemLib/Sun.php
@@ -3,6 +3,8 @@
namespace Acme\SolarSystemLib;
-class Sun {
+use Keruald\OmniTools\Tests\data\SolarSystemLib\Base\AstronomicalBody;
+
+class Sun implements AstronomicalBody {
}

File Metadata

Mime Type
text/plain
Expires
Fri, Apr 17, 18:16 (19 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3633008
Default Alt Text
D4064.diff (3 KB)

Event Timeline