summaryrefslogtreecommitdiff
path: root/vendor/symfony/debug/Tests/Fixtures
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/symfony/debug/Tests/Fixtures')
-rw-r--r--vendor/symfony/debug/Tests/Fixtures/AnnotatedClass.php13
-rw-r--r--vendor/symfony/debug/Tests/Fixtures/ClassAlias.php3
-rw-r--r--vendor/symfony/debug/Tests/Fixtures/DeprecatedClass.php12
-rw-r--r--vendor/symfony/debug/Tests/Fixtures/DeprecatedInterface.php12
-rw-r--r--vendor/symfony/debug/Tests/Fixtures/ExtendedFinalMethod.php17
-rw-r--r--vendor/symfony/debug/Tests/Fixtures/FinalClass.php10
-rw-r--r--vendor/symfony/debug/Tests/Fixtures/FinalMethod.php17
-rw-r--r--vendor/symfony/debug/Tests/Fixtures/InternalClass.php15
-rw-r--r--vendor/symfony/debug/Tests/Fixtures/InternalInterface.php10
-rw-r--r--vendor/symfony/debug/Tests/Fixtures/InternalTrait.php10
-rw-r--r--vendor/symfony/debug/Tests/Fixtures/InternalTrait2.php23
-rw-r--r--vendor/symfony/debug/Tests/Fixtures/NonDeprecatedInterface.php7
-rw-r--r--vendor/symfony/debug/Tests/Fixtures/PEARClass.php5
-rw-r--r--vendor/symfony/debug/Tests/Fixtures/Throwing.php3
-rw-r--r--vendor/symfony/debug/Tests/Fixtures/ToStringThrower.php24
-rw-r--r--vendor/symfony/debug/Tests/Fixtures/casemismatch.php7
-rw-r--r--vendor/symfony/debug/Tests/Fixtures/notPsr0Bis.php7
-rw-r--r--vendor/symfony/debug/Tests/Fixtures/psr4/Psr4CaseMismatch.php7
-rw-r--r--vendor/symfony/debug/Tests/Fixtures/reallyNotPsr0.php7
19 files changed, 209 insertions, 0 deletions
diff --git a/vendor/symfony/debug/Tests/Fixtures/AnnotatedClass.php b/vendor/symfony/debug/Tests/Fixtures/AnnotatedClass.php
new file mode 100644
index 00000000..dff9517d
--- /dev/null
+++ b/vendor/symfony/debug/Tests/Fixtures/AnnotatedClass.php
@@ -0,0 +1,13 @@
+<?php
+
+namespace Symfony\Component\Debug\Tests\Fixtures;
+
+class AnnotatedClass
+{
+ /**
+ * @deprecated since version 3.4.
+ */
+ public function deprecatedMethod()
+ {
+ }
+}
diff --git a/vendor/symfony/debug/Tests/Fixtures/ClassAlias.php b/vendor/symfony/debug/Tests/Fixtures/ClassAlias.php
new file mode 100644
index 00000000..9d6dbaa7
--- /dev/null
+++ b/vendor/symfony/debug/Tests/Fixtures/ClassAlias.php
@@ -0,0 +1,3 @@
+<?php
+
+class_alias('Symfony\Component\Debug\Tests\Fixtures\NotPSR0bis', 'Symfony\Component\Debug\Tests\Fixtures\ClassAlias');
diff --git a/vendor/symfony/debug/Tests/Fixtures/DeprecatedClass.php b/vendor/symfony/debug/Tests/Fixtures/DeprecatedClass.php
new file mode 100644
index 00000000..51fde5af
--- /dev/null
+++ b/vendor/symfony/debug/Tests/Fixtures/DeprecatedClass.php
@@ -0,0 +1,12 @@
+<?php
+
+namespace Symfony\Component\Debug\Tests\Fixtures;
+
+/**
+ * @deprecated but this is a test
+ * deprecation notice
+ * @foobar
+ */
+class DeprecatedClass
+{
+}
diff --git a/vendor/symfony/debug/Tests/Fixtures/DeprecatedInterface.php b/vendor/symfony/debug/Tests/Fixtures/DeprecatedInterface.php
new file mode 100644
index 00000000..6bab62f9
--- /dev/null
+++ b/vendor/symfony/debug/Tests/Fixtures/DeprecatedInterface.php
@@ -0,0 +1,12 @@
+<?php
+
+namespace Symfony\Component\Debug\Tests\Fixtures;
+
+/**
+ * @deprecated but this is a test
+ * deprecation notice
+ * @foobar
+ */
+interface DeprecatedInterface
+{
+}
diff --git a/vendor/symfony/debug/Tests/Fixtures/ExtendedFinalMethod.php b/vendor/symfony/debug/Tests/Fixtures/ExtendedFinalMethod.php
new file mode 100644
index 00000000..2bd337e5
--- /dev/null
+++ b/vendor/symfony/debug/Tests/Fixtures/ExtendedFinalMethod.php
@@ -0,0 +1,17 @@
+<?php
+
+namespace Symfony\Component\Debug\Tests\Fixtures;
+
+class ExtendedFinalMethod extends FinalMethod
+{
+ /**
+ * {@inheritdoc}
+ */
+ public function finalMethod()
+ {
+ }
+
+ public function anotherMethod()
+ {
+ }
+}
diff --git a/vendor/symfony/debug/Tests/Fixtures/FinalClass.php b/vendor/symfony/debug/Tests/Fixtures/FinalClass.php
new file mode 100644
index 00000000..2cf26b19
--- /dev/null
+++ b/vendor/symfony/debug/Tests/Fixtures/FinalClass.php
@@ -0,0 +1,10 @@
+<?php
+
+namespace Symfony\Component\Debug\Tests\Fixtures;
+
+/**
+ * @final since version 3.3.
+ */
+class FinalClass
+{
+}
diff --git a/vendor/symfony/debug/Tests/Fixtures/FinalMethod.php b/vendor/symfony/debug/Tests/Fixtures/FinalMethod.php
new file mode 100644
index 00000000..92ec4218
--- /dev/null
+++ b/vendor/symfony/debug/Tests/Fixtures/FinalMethod.php
@@ -0,0 +1,17 @@
+<?php
+
+namespace Symfony\Component\Debug\Tests\Fixtures;
+
+class FinalMethod
+{
+ /**
+ * @final since version 3.3.
+ */
+ public function finalMethod()
+ {
+ }
+
+ public function anotherMethod()
+ {
+ }
+}
diff --git a/vendor/symfony/debug/Tests/Fixtures/InternalClass.php b/vendor/symfony/debug/Tests/Fixtures/InternalClass.php
new file mode 100644
index 00000000..119842c2
--- /dev/null
+++ b/vendor/symfony/debug/Tests/Fixtures/InternalClass.php
@@ -0,0 +1,15 @@
+<?php
+
+namespace Symfony\Component\Debug\Tests\Fixtures;
+
+/**
+ * @internal since version 3.4.
+ */
+class InternalClass
+{
+ use InternalTrait2;
+
+ public function usedInInternalClass()
+ {
+ }
+}
diff --git a/vendor/symfony/debug/Tests/Fixtures/InternalInterface.php b/vendor/symfony/debug/Tests/Fixtures/InternalInterface.php
new file mode 100644
index 00000000..dd79f501
--- /dev/null
+++ b/vendor/symfony/debug/Tests/Fixtures/InternalInterface.php
@@ -0,0 +1,10 @@
+<?php
+
+namespace Symfony\Component\Debug\Tests\Fixtures;
+
+/**
+ * @internal
+ */
+interface InternalInterface
+{
+}
diff --git a/vendor/symfony/debug/Tests/Fixtures/InternalTrait.php b/vendor/symfony/debug/Tests/Fixtures/InternalTrait.php
new file mode 100644
index 00000000..7bb4635c
--- /dev/null
+++ b/vendor/symfony/debug/Tests/Fixtures/InternalTrait.php
@@ -0,0 +1,10 @@
+<?php
+
+namespace Symfony\Component\Debug\Tests\Fixtures;
+
+/**
+ * @internal
+ */
+trait InternalTrait
+{
+}
diff --git a/vendor/symfony/debug/Tests/Fixtures/InternalTrait2.php b/vendor/symfony/debug/Tests/Fixtures/InternalTrait2.php
new file mode 100644
index 00000000..05f18e83
--- /dev/null
+++ b/vendor/symfony/debug/Tests/Fixtures/InternalTrait2.php
@@ -0,0 +1,23 @@
+<?php
+
+namespace Symfony\Component\Debug\Tests\Fixtures;
+
+/**
+ * @internal
+ */
+trait InternalTrait2
+{
+ /**
+ * @internal since version 3.4
+ */
+ public function internalMethod()
+ {
+ }
+
+ /**
+ * @internal but should not trigger a deprecation
+ */
+ public function usedInInternalClass()
+ {
+ }
+}
diff --git a/vendor/symfony/debug/Tests/Fixtures/NonDeprecatedInterface.php b/vendor/symfony/debug/Tests/Fixtures/NonDeprecatedInterface.php
new file mode 100644
index 00000000..a4179a57
--- /dev/null
+++ b/vendor/symfony/debug/Tests/Fixtures/NonDeprecatedInterface.php
@@ -0,0 +1,7 @@
+<?php
+
+namespace Symfony\Component\Debug\Tests\Fixtures;
+
+interface NonDeprecatedInterface extends DeprecatedInterface
+{
+}
diff --git a/vendor/symfony/debug/Tests/Fixtures/PEARClass.php b/vendor/symfony/debug/Tests/Fixtures/PEARClass.php
new file mode 100644
index 00000000..39f22818
--- /dev/null
+++ b/vendor/symfony/debug/Tests/Fixtures/PEARClass.php
@@ -0,0 +1,5 @@
+<?php
+
+class Symfony_Component_Debug_Tests_Fixtures_PEARClass
+{
+}
diff --git a/vendor/symfony/debug/Tests/Fixtures/Throwing.php b/vendor/symfony/debug/Tests/Fixtures/Throwing.php
new file mode 100644
index 00000000..21e0aba1
--- /dev/null
+++ b/vendor/symfony/debug/Tests/Fixtures/Throwing.php
@@ -0,0 +1,3 @@
+<?php
+
+throw new \Exception('boo');
diff --git a/vendor/symfony/debug/Tests/Fixtures/ToStringThrower.php b/vendor/symfony/debug/Tests/Fixtures/ToStringThrower.php
new file mode 100644
index 00000000..40a5fb7f
--- /dev/null
+++ b/vendor/symfony/debug/Tests/Fixtures/ToStringThrower.php
@@ -0,0 +1,24 @@
+<?php
+
+namespace Symfony\Component\Debug\Tests\Fixtures;
+
+class ToStringThrower
+{
+ private $exception;
+
+ public function __construct(\Exception $e)
+ {
+ $this->exception = $e;
+ }
+
+ public function __toString()
+ {
+ try {
+ throw $this->exception;
+ } catch (\Exception $e) {
+ // Using user_error() here is on purpose so we do not forget
+ // that this alias also should work alongside with trigger_error().
+ return user_error($e, E_USER_ERROR);
+ }
+ }
+}
diff --git a/vendor/symfony/debug/Tests/Fixtures/casemismatch.php b/vendor/symfony/debug/Tests/Fixtures/casemismatch.php
new file mode 100644
index 00000000..691d660f
--- /dev/null
+++ b/vendor/symfony/debug/Tests/Fixtures/casemismatch.php
@@ -0,0 +1,7 @@
+<?php
+
+namespace Symfony\Component\Debug\Tests\Fixtures;
+
+class CaseMismatch
+{
+}
diff --git a/vendor/symfony/debug/Tests/Fixtures/notPsr0Bis.php b/vendor/symfony/debug/Tests/Fixtures/notPsr0Bis.php
new file mode 100644
index 00000000..4cf52671
--- /dev/null
+++ b/vendor/symfony/debug/Tests/Fixtures/notPsr0Bis.php
@@ -0,0 +1,7 @@
+<?php
+
+namespace Symfony\Component\Debug\Tests\Fixtures;
+
+class NotPSR0bis
+{
+}
diff --git a/vendor/symfony/debug/Tests/Fixtures/psr4/Psr4CaseMismatch.php b/vendor/symfony/debug/Tests/Fixtures/psr4/Psr4CaseMismatch.php
new file mode 100644
index 00000000..ec48dd22
--- /dev/null
+++ b/vendor/symfony/debug/Tests/Fixtures/psr4/Psr4CaseMismatch.php
@@ -0,0 +1,7 @@
+<?php
+
+namespace Symfony\Component\Debug\Tests\Fixtures;
+
+class PSR4CaseMismatch
+{
+}
diff --git a/vendor/symfony/debug/Tests/Fixtures/reallyNotPsr0.php b/vendor/symfony/debug/Tests/Fixtures/reallyNotPsr0.php
new file mode 100644
index 00000000..8554725a
--- /dev/null
+++ b/vendor/symfony/debug/Tests/Fixtures/reallyNotPsr0.php
@@ -0,0 +1,7 @@
+<?php
+
+namespace Symfony\Component\Debug\Tests\Fixtures;
+
+class NotPSR0
+{
+}