This commit is contained in:
chrosey
2017-09-13 07:52:34 +02:00
parent a1f16c37f4
commit 2340b0226b
24621 changed files with 2912161 additions and 149 deletions
+7
View File
@@ -0,0 +1,7 @@
<?php
namespace Fixtures\Prophecy;
class EmptyClass
{
}
+7
View File
@@ -0,0 +1,7 @@
<?php
namespace Fixtures\Prophecy;
interface EmptyInterface
{
}
+7
View File
@@ -0,0 +1,7 @@
<?php
namespace Fixtures\Prophecy;
final class FinalClass
{
}
+10
View File
@@ -0,0 +1,10 @@
<?php
namespace Fixtures\Prophecy;
interface ModifierInterface
{
public function isAbstract();
public function getVisibility();
}
+8
View File
@@ -0,0 +1,8 @@
<?php
namespace Fixtures\Prophecy;
interface Named
{
public function getName();
}
+16
View File
@@ -0,0 +1,16 @@
<?php
namespace Fixtures\Prophecy;
use I\Simply;
class OptionalDepsClass
{
public function iHaveAStrangeTypeHintedArg(\I\Simply\Am\Nonexistent $class)
{
}
public function iHaveAnEvenStrangerTypeHintedArg(Simply\Am\Not $class)
{
}
}
+36
View File
@@ -0,0 +1,36 @@
<?php
namespace Fixtures\Prophecy;
class SpecialMethods
{
public function __construct()
{
}
function __destruct()
{
}
function __call($name, $arguments)
{
}
function __sleep()
{
}
function __wakeup()
{
}
function __toString()
{
return '';
}
function __invoke()
{
}
}
+14
View File
@@ -0,0 +1,14 @@
<?php
namespace Fixtures\Prophecy;
class WithArguments
{
public function methodWithArgs(array $arg_1 = array(), \ArrayAccess $arg_2, \ArrayAccess $arg_3 = null)
{
}
public function methodWithoutTypeHints($arg)
{
}
}
@@ -0,0 +1,10 @@
<?php
namespace Fixtures\Prophecy;
class WithCallableArgument
{
public function methodWithArgs(callable $arg_1, callable $arg_2 = null)
{
}
}
+10
View File
@@ -0,0 +1,10 @@
<?php
namespace Fixtures\Prophecy;
class WithFinalMethod
{
final public function finalImplementation()
{
}
}
@@ -0,0 +1,15 @@
<?php
namespace Fixtures\Prophecy;
class WithFinalVirtuallyPrivateMethod
{
final public function __toString()
{
return '';
}
final public function _getName()
{
}
}
@@ -0,0 +1,8 @@
<?php
namespace Fixtures\Prophecy;
abstract class WithProtectedAbstractMethod
{
abstract protected function innerDetail();
}
+10
View File
@@ -0,0 +1,10 @@
<?php
namespace Fixtures\Prophecy;
class WithReferences
{
public function methodWithReferenceArgument(&$arg_1, \ArrayAccess &$arg_2)
{
}
}
@@ -0,0 +1,18 @@
<?php
namespace Fixtures\Prophecy;
class WithReturnTypehints extends EmptyClass
{
public function getSelf(): self {
return $this;
}
public function getName(): string {
return __CLASS__;
}
public function getParent(): parent {
return $this;
}
}
+10
View File
@@ -0,0 +1,10 @@
<?php
namespace Fixtures\Prophecy;
class WithStaticMethod
{
public static function innerDetail()
{
}
}
@@ -0,0 +1,10 @@
<?php
namespace Fixtures\Prophecy;
class WithTypehintedVariadicArgument
{
function methodWithTypeHintedArgs(array ...$args)
{
}
}
@@ -0,0 +1,10 @@
<?php
namespace Fixtures\Prophecy;
class WithVariadicArgument
{
function methodWithArgs(...$args)
{
}
}
@@ -0,0 +1,19 @@
<?php
namespace Fixtures\Prophecy;
class WithVirtuallyPrivateMethod
{
public function __toString()
{
return '';
}
public function _getName()
{
}
public function isAbstract()
{
}
}