Laravel version update
Laravel version update
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
interface AnInterface
|
||||
{
|
||||
public function doSomething();
|
||||
|
5
vendor/phpunit/phpunit-mock-objects/tests/_fixture/AnInterfaceWithReturnType.php
vendored
Normal file
5
vendor/phpunit/phpunit-mock-objects/tests/_fixture/AnInterfaceWithReturnType.php
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
interface AnInterfaceWithReturnType
|
||||
{
|
||||
public function returnAnArray(): array;
|
||||
}
|
56
vendor/phpunit/phpunit-mock-objects/tests/_fixture/ClassWithAllPossibleReturnTypes.php
vendored
Normal file
56
vendor/phpunit/phpunit-mock-objects/tests/_fixture/ClassWithAllPossibleReturnTypes.php
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
class ClassWithAllPossibleReturnTypes
|
||||
{
|
||||
public function methodWithNoReturnTypeDeclaration()
|
||||
{
|
||||
}
|
||||
|
||||
public function methodWithVoidReturnTypeDeclaration(): void
|
||||
{
|
||||
}
|
||||
|
||||
public function methodWithStringReturnTypeDeclaration(): string
|
||||
{
|
||||
return 'string';
|
||||
}
|
||||
|
||||
public function methodWithFloatReturnTypeDeclaration(): float
|
||||
{
|
||||
return 1.0;
|
||||
}
|
||||
|
||||
public function methodWithIntReturnTypeDeclaration(): int
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
public function methodWithBoolReturnTypeDeclaration(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function methodWithArrayReturnTypeDeclaration(): array
|
||||
{
|
||||
return ['string'];
|
||||
}
|
||||
|
||||
public function methodWithTraversableReturnTypeDeclaration(): Traversable
|
||||
{
|
||||
return new ArrayIterator(['string']);
|
||||
}
|
||||
|
||||
public function methodWithGeneratorReturnTypeDeclaration(): Generator
|
||||
{
|
||||
yield 1;
|
||||
}
|
||||
|
||||
public function methodWithObjectReturnTypeDeclaration(): object
|
||||
{
|
||||
return new Exception;
|
||||
}
|
||||
|
||||
public function methodWithClassReturnTypeDeclaration(): stdClass
|
||||
{
|
||||
return new stdClass;
|
||||
}
|
||||
}
|
7
vendor/phpunit/phpunit-mock-objects/tests/_fixture/ClassWithSelfTypeHint.php
vendored
Normal file
7
vendor/phpunit/phpunit-mock-objects/tests/_fixture/ClassWithSelfTypeHint.php
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
class ClassWithSelfTypeHint
|
||||
{
|
||||
public function foo(self $foo)
|
||||
{
|
||||
}
|
||||
}
|
@@ -3,7 +3,7 @@ function functionCallback()
|
||||
{
|
||||
$args = func_get_args();
|
||||
|
||||
if ($args == array('foo', 'bar')) {
|
||||
if ($args == ['foo', 'bar']) {
|
||||
return 'pass';
|
||||
}
|
||||
}
|
||||
|
5
vendor/phpunit/phpunit-mock-objects/tests/_fixture/InterfaceWithSemiReservedMethodName.php
vendored
Normal file
5
vendor/phpunit/phpunit-mock-objects/tests/_fixture/InterfaceWithSemiReservedMethodName.php
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
interface InterfaceWithSemiReservedMethodName
|
||||
{
|
||||
public function unset();
|
||||
}
|
@@ -5,7 +5,7 @@ class MethodCallback
|
||||
{
|
||||
$args = func_get_args();
|
||||
|
||||
if ($args == array('foo', 'bar')) {
|
||||
if ($args == ['foo', 'bar']) {
|
||||
return 'pass';
|
||||
}
|
||||
}
|
||||
@@ -14,7 +14,7 @@ class MethodCallback
|
||||
{
|
||||
$args = func_get_args();
|
||||
|
||||
if ($args == array('foo', 'bar')) {
|
||||
if ($args == ['foo', 'bar']) {
|
||||
return 'pass';
|
||||
}
|
||||
}
|
||||
|
@@ -6,7 +6,7 @@ class Mockable
|
||||
|
||||
public function __construct($arg1 = null, $arg2 = null)
|
||||
{
|
||||
$this->constructorArgs = array($arg1, $arg2);
|
||||
$this->constructorArgs = [$arg1, $arg2];
|
||||
}
|
||||
|
||||
public function mockableMethod()
|
||||
|
@@ -3,11 +3,11 @@ class SomeClass
|
||||
{
|
||||
public function doSomething($a, $b)
|
||||
{
|
||||
return null;
|
||||
return;
|
||||
}
|
||||
|
||||
public function doSomethingElse($c)
|
||||
{
|
||||
return null;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
8
vendor/phpunit/phpunit-mock-objects/tests/_fixture/StringableClass.php
vendored
Normal file
8
vendor/phpunit/phpunit-mock-objects/tests/_fixture/StringableClass.php
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
class StringableClass
|
||||
{
|
||||
public function __toString()
|
||||
{
|
||||
return '12345';
|
||||
}
|
||||
}
|
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
interface TraversableMockTestInterface extends Traversable
|
||||
|
||||
interface TraversableMockTestInterface extends \Traversable
|
||||
{
|
||||
}
|
||||
|
Reference in New Issue
Block a user