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:
Thilina Hasantha
2018-01-08 23:13:43 +01:00
committed by GitHub
parent 359e3f8382
commit e7792e7d79
2349 changed files with 117270 additions and 83170 deletions

View File

@@ -1,4 +1,5 @@
<?php
interface AnInterface
{
public function doSomething();

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

View File

@@ -1,4 +1,5 @@
<?php
interface TraversableMockTestInterface extends Traversable
interface TraversableMockTestInterface extends \Traversable
{
}