Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F25520419
D4064.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
D4064.id.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 17, 02:50 (4 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3633008
Default Alt Text
D4064.id.diff (3 KB)
Attached To
Mode
D4064: Provide inheritance in SolarSystemLib tests
Attached
Detach File
Event Timeline
Log In to Comment