Skip to content

Commit

Permalink
Merge pull request #2 from conjoon/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
ThorstenSuckow committed May 11, 2022
2 parents 3d5c1a6 + 3ba0fa4 commit de42196
Show file tree
Hide file tree
Showing 95 changed files with 5 additions and 159 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"php": ">=7.4",
"ezyang/htmlpurifier": "^4.11",
"laravel/lumen-framework": "5.8.*",
"pear-pear.horde.org/horde_imap_client": "*",
"pear-pear.horde.org/horde_smtp": "*"
"pear-pear.horde.org/horde_imap_client": "2.30.*",
"pear-pear.horde.org/horde_smtp": "1.9.*"
},
"require-dev": {
"fakerphp/faker": "^1.9.1",
Expand Down
2 changes: 1 addition & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
<description>The coding standard (PSR-12) for conjoon/php-lib-conjoon.</description>

<file>src/</file>
<file>tests/</file>

<rule ref="PSR12" />
</ruleset>
1 change: 0 additions & 1 deletion tests/Core/ParameterBagTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
*/
class ParameterBagTest extends TestCase
{

/**
* Class functionality
* @noinspection PhpUndefinedFieldInspection
Expand Down
1 change: 0 additions & 1 deletion tests/Core/ResourceQueryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
*/
class ResourceQueryTest extends TestCase
{

/**
* Class functionality
* @noinspection PhpUndefinedFieldInspection
Expand Down
1 change: 0 additions & 1 deletion tests/Horde/Mail/Client/Imap/AttributeTraitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
*/
class AttributeTraitTest extends TestCase
{

/**
* getDefAttr()
* @throws ReflectionException
Expand Down
4 changes: 0 additions & 4 deletions tests/Horde/Mail/Client/Imap/ClientGeneratorTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,13 @@
*/
trait ClientGeneratorTrait
{

/**
* @return BodyComposer
*/
protected function createBodyComposer(): BodyComposer
{

return new class () implements BodyComposer {

public function compose(string $target, MessageBodyDraft $messageBodyDraft): string
{
return trim($target) . "\n\n" . "FULL_TXT_MSG";
Expand All @@ -67,7 +65,6 @@ protected function createAttachmentComposer(): AttachmentComposer
{

return new class () implements AttachmentComposer {

public function compose(string $target, FileAttachmentList $fileAttachmentList): string
{
return trim($target) . "\n\nAttachments[" . count($fileAttachmentList) . "]";
Expand All @@ -83,7 +80,6 @@ protected function createHeaderComposer(): HeaderComposer
{

return new class () implements HeaderComposer {

public function compose(string $target, MessageItemDraft $source = null): string
{
return "__HEADER__" . "\n\n" . trim($target);
Expand Down
1 change: 0 additions & 1 deletion tests/Horde/Mail/Client/Imap/FilterTraitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
*/
class FilterTraitTest extends TestCase
{

/**
* Tests getSearchQueryFromFilter
*/
Expand Down
1 change: 0 additions & 1 deletion tests/Horde/Mail/Client/Imap/HordeClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1401,7 +1401,6 @@ protected function sendMessageDraftTest(string $testType = "")
$rawMsg = "RAWMESSAGE";
$fetchResult = [];
$fetchResult[$messageKey->getId()] = new class ($rawMsg) {

/**
* @var string
*/
Expand Down
1 change: 0 additions & 1 deletion tests/Horde/Mail/Client/Imap/SocketForTesting.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
*/
class SocketForTesting
{

public function connect()
{
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
*/
class HordeAttachmentComposerTest extends TestCase
{

public function testClass()
{
$composer = new HordeAttachmentComposer();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@
*/
class HordeBodyComposerTest extends TestCase
{


/**
* Test instance.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@
*/
class HordeHeaderComposerTest extends TestCase
{


public function testClass()
{

Expand Down
1 change: 0 additions & 1 deletion tests/Http/Exception/BadRequestExceptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
*/
class BadRequestExceptionTest extends TestCase
{

/**
* test instance
*/
Expand Down
1 change: 0 additions & 1 deletion tests/Http/Exception/HttpExceptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
*/
class HttpExceptionTest extends TestCase
{

/**
* test instance
*/
Expand Down
1 change: 0 additions & 1 deletion tests/Http/Exception/InternalServerErrorExceptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
*/
class InternalServerErrorExceptionTest extends TestCase
{

/**
* test instance
*/
Expand Down
1 change: 0 additions & 1 deletion tests/Http/Json/Problem/AbstractProblemTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
*/
class AbstractProblemTest extends TestCase
{

/**
* test instance
*/
Expand Down
1 change: 0 additions & 1 deletion tests/Http/Json/Problem/BadRequestProblemTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
*/
class BadRequestProblemTest extends TestCase
{

/**
* test instance
*/
Expand Down
1 change: 0 additions & 1 deletion tests/Http/Json/Problem/InternalServerErrorProblemTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
*/
class InternalServerErrorProblemTest extends TestCase
{

/**
* test instance
*/
Expand Down
1 change: 0 additions & 1 deletion tests/Http/Json/Problem/MethodNotAllowedProblemTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
*/
class MethodNotAllowedProblemTest extends TestCase
{

/**
* test instance
*/
Expand Down
1 change: 0 additions & 1 deletion tests/Http/Json/Problem/ProblemFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
*/
class ProblemFactoryTest extends TestCase
{

/**
* test make
*/
Expand Down
1 change: 0 additions & 1 deletion tests/Http/Json/Problem/ProblemTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
*/
class ProblemTest extends TestCase
{

/**
* test instance
*/
Expand Down
1 change: 0 additions & 1 deletion tests/Http/Query/InvalidParameterResourceExceptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
*/
class InvalidParameterResourceExceptionTest extends TestCase
{

/**
* test instance
*/
Expand Down
1 change: 0 additions & 1 deletion tests/Http/Query/InvalidQueryExceptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
*/
class InvalidQueryExceptionTest extends TestCase
{

/**
* test instance
*/
Expand Down
1 change: 0 additions & 1 deletion tests/Http/Query/InvalidQueryParameterExceptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
*/
class InvalidQueryParameterExceptionTest extends TestCase
{

/**
* test instance
*/
Expand Down
3 changes: 0 additions & 3 deletions tests/Http/Query/QueryTranslatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
*/
class QueryTranslatorTest extends TestCase
{

/**
* Class functionality
*/
Expand Down Expand Up @@ -109,7 +108,6 @@ public function testValidateParametersThrows()
protected function getResourceQuery(ParameterBag $bag): ResourceQuery
{
return new class ($bag) extends ResourceQuery {

};
}

Expand All @@ -120,7 +118,6 @@ protected function getResourceQuery(ParameterBag $bag): ResourceQuery
protected function getParameterResource(): object
{
return new class {

public function getParameters(): array
{
return [
Expand Down
1 change: 0 additions & 1 deletion tests/Http/Status/StatusCodesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
*/
class StatusCodesTest extends TestCase
{

/**
* test class
*/
Expand Down
1 change: 0 additions & 1 deletion tests/Illuminate/Auth/Imap/DefaultImapUserProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
*/
class DefaultImapUserProviderTest extends TestCase
{

/**
* getUser()
* @noinspection SpellCheckingInspection
Expand Down
1 change: 0 additions & 1 deletion tests/Illuminate/Auth/Imap/ImapUserProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
*/
class ImapUserProviderTest extends TestCase
{

/**
* getUser()
*/
Expand Down
1 change: 0 additions & 1 deletion tests/Illuminate/Auth/Imap/ImapUserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
*/
class ImapUserTest extends TestCase
{

/**
* Tests ImapUser getter/constructor.
*/
Expand Down
1 change: 0 additions & 1 deletion tests/Illuminate/Auth/Imap/UtilTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@

class UtilTest extends TestCase
{

protected array $config = [
"id" => "dev_sys_conjoon_org",
"inbox_type" => "IMAP",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@
*/
class LaravelAttachmentListJsonTransformerTest extends TestCase
{


/**
* Test inheritance
*/
Expand Down
3 changes: 0 additions & 3 deletions tests/Mail/Client/Attachment/AbstractAttachmentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@
*/
class AbstractAttachmentTest extends TestCase
{


// ---------------------
// Tests
// ---------------------
Expand Down Expand Up @@ -164,7 +162,6 @@ protected function createAbstractAttachment($key, $data): AbstractAttachment
{
// Create a new instance from the Abstract Class
return new class ($key, $data) extends AbstractAttachment {

public function toJson(): array
{
return [];
Expand Down
2 changes: 0 additions & 2 deletions tests/Mail/Client/Attachment/FileAttachmentItemListTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@
*/
class FileAttachmentItemListTest extends TestCase
{


// ---------------------
// Tests
// ---------------------
Expand Down
2 changes: 0 additions & 2 deletions tests/Mail/Client/Attachment/FileAttachmentItemTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@
*/
class FileAttachmentItemTest extends TestCase
{


// ---------------------
// Tests
// ---------------------
Expand Down
2 changes: 0 additions & 2 deletions tests/Mail/Client/Attachment/FileAttachmentListTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@
*/
class FileAttachmentListTest extends TestCase
{


// ---------------------
// Tests
// ---------------------
Expand Down
2 changes: 0 additions & 2 deletions tests/Mail/Client/Attachment/FileAttachmentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@
*/
class FileAttachmentTest extends TestCase
{


// ---------------------
// Tests
// ---------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@
*/
class InlineDataProcessorTest extends TestCase
{


/**
* Test class
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@
*/
class ProcessorExceptionTest extends TestCase
{


public function testInstance()
{

Expand Down
2 changes: 0 additions & 2 deletions tests/Mail/Client/Data/CompoundKey/AttachmentKeyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@
*/
class AttachmentKeyTest extends TestCase
{


// ---------------------
// Tests
// ---------------------
Expand Down
2 changes: 0 additions & 2 deletions tests/Mail/Client/Data/CompoundKey/FolderKeyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@
*/
class FolderKeyTest extends TestCase
{


// ---------------------
// Tests
// ---------------------
Expand Down
Loading

0 comments on commit de42196

Please sign in to comment.