Fragment gemist bijna af

This commit is contained in:
2020-01-06 02:36:10 +01:00
parent 150d0179fc
commit ed1871ae68
6310 changed files with 727834 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
<?php
namespace Fixtures\Prophecy;
class EmptyClass
{
}

View File

@@ -0,0 +1,7 @@
<?php
namespace Fixtures\Prophecy;
interface EmptyInterface
{
}

View File

@@ -0,0 +1,7 @@
<?php
namespace Fixtures\Prophecy;
final class FinalClass
{
}

View File

@@ -0,0 +1,10 @@
<?php
namespace Fixtures\Prophecy;
interface ModifierInterface
{
public function isAbstract();
public function getVisibility();
}

View File

@@ -0,0 +1,8 @@
<?php
namespace Fixtures\Prophecy;
interface Named
{
public function getName();
}

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)
{
}
}

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()
{
}
}

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)
{
}
}

View File

@@ -0,0 +1,10 @@
<?php
namespace Fixtures\Prophecy;
class WithCallableArgument
{
public function methodWithArgs(callable $arg_1, callable $arg_2 = null)
{
}
}

View File

@@ -0,0 +1,10 @@
<?php
namespace Fixtures\Prophecy;
class WithFinalMethod
{
final public function finalImplementation()
{
}
}

View File

@@ -0,0 +1,15 @@
<?php
namespace Fixtures\Prophecy;
class WithFinalVirtuallyPrivateMethod
{
final public function __toString()
{
return '';
}
final public function _getName()
{
}
}

View File

@@ -0,0 +1,8 @@
<?php
namespace Fixtures\Prophecy;
abstract class WithProtectedAbstractMethod
{
abstract protected function innerDetail();
}

View File

@@ -0,0 +1,10 @@
<?php
namespace Fixtures\Prophecy;
class WithReferences
{
public function methodWithReferenceArgument(&$arg_1, \ArrayAccess &$arg_2)
{
}
}

View File

@@ -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;
}
}

View File

@@ -0,0 +1,10 @@
<?php
namespace Fixtures\Prophecy;
class WithStaticMethod
{
public static function innerDetail()
{
}
}

View File

@@ -0,0 +1,10 @@
<?php
namespace Fixtures\Prophecy;
class WithTypehintedVariadicArgument
{
function methodWithTypeHintedArgs(array ...$args)
{
}
}

View File

@@ -0,0 +1,10 @@
<?php
namespace Fixtures\Prophecy;
class WithVariadicArgument
{
function methodWithArgs(...$args)
{
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace Fixtures\Prophecy;
class WithVirtuallyPrivateMethod
{
public function __toString()
{
return '';
}
public function _getName()
{
}
public function isAbstract()
{
}
}