Add pear modules, mail and net_smtp via composer (#93)
Add pear modules, mail and net_smtp via composer, remove php 5.6 build due to phpunit 6
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
interface AnInterface
|
||||
{
|
||||
public function doSomething();
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
interface TraversableMockTestInterface extends Traversable
|
||||
|
||||
interface TraversableMockTestInterface extends \Traversable
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user