profile
viewpoint

paratestphp/paratest 1490

:computer: Parallel testing for PHPUnit

ddeboer/imap 657

Object-oriented, fully tested PHP IMAP library

Slamdunk/AutoMySQLBackup 1

A fork and further development of AutoMySQLBackup from sourceforge. http://sourceforge.net/projects/automysqlbackup/

Codeception/module-mezzio 0

Codeception Module for Mezzio framework (formerly known as Zend Expressive)

Slamdunk/.dotfiles 0

My dotfiles

Slamdunk/alert-on-composerlock-change 0

Alert developer when composer.lock changed

Slamdunk/ansible-ssh-hardening 0

This Ansible role provides numerous security-related ssh configurations, providing all-round base protection.

Slamdunk/assert-1 0

Assertions to validate method input/output with nice error messages.

issue commentSlamdunk/phpstan-laminas-framework

Method ::getRequest() in controller returns wrong class

I solved this problem with phpstan config:

  ignoreErrors:
    - '#Call to an undefined method Laminas\\Console\\Request::getMethod\(\)#'
    - '#Call to an undefined method Laminas\\Console\\Request::isPatch\(\)#'
    - '#Call to an undefined method Laminas\\Console\\Request::isPost\(\)#'
    - '#Call to an undefined method Laminas\\Console\\Response::getHeaders\(\)#'
MatyCZ

comment created time in 4 hours

issue commentSlamdunk/phpstan-laminas-framework

Method ::getRequest() in controller returns wrong class

This is example of the code:

<?php

namespace ApiApp\Controller;

use Laminas\Mvc\Controller\AbstractActionController;
use Laminas\View\Model\ViewModel;

class TestController extends AbstractActionController
{
    public function updateAction(): ViewModel
    {
        if ($this->getRequest()->isPost()) {
            $post = $this->getRequest()->getPost();

            var_dump($post);
        }

        return new ViewModel([
            'test' => true
        ]);
    }
}
MatyCZ

comment created time in 4 hours

PublicEvent

created repositoryntzm/aoc-2020

created time in a day

fork sanmai/ComposerRequireChecker

A CLI tool to check whether a specific composer package uses imported symbols that aren't part of its direct composer dependencies

fork in 2 days

fork weierophinney/laminas-component-installer

Composer plugin for injecting modules and configuration providers into application configuration

https://docs.laminas.dev/laminas-component-installer/

fork in 2 days

created repositorymaraspin/its-web-2020

ITS Web Architectures Class

created time in 2 days

pull request commentddeboer/imap

[GA] Fix

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@7df8e48). Click here to learn what that means. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #483   +/-   ##
=========================================
  Coverage          ?   95.78%           
  Complexity        ?      344           
=========================================
  Files             ?       45           
  Lines             ?      807           
  Branches          ?        0           
=========================================
  Hits              ?      773           
  Misses            ?       34           
  Partials          ?        0           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 7df8e48...dbbf017. Read the comment docs.

Slamdunk

comment created time in 2 days

fork Ocramius/laminas-code

Extensions to the PHP Reflection API, static code scanning, and code generation

https://docs.laminas.dev/laminas-code/

fork in 3 days

created repositorythe-fast-track/book-5.0-6

The Symfony 5 book source: The Fast Track

created time in 3 days

fork BackEndTea/diff

Diff implementation

fork in 3 days

issue openedddeboer/imap

PHP 8 Compatibility

Hello,

After upgrading from PHP 7.4 to PHP 8.0, the library stopped working for me and I'm not able to retrieve message numbers using getNumber() any longer.

Here's my code:

$server = new Server(EMAIL_SERVER, EMAIL_PORT, EMAIL_FLAG);
$connection = $server->authenticate(EMAIL_USERNAME, EMAIL_PASSWORD);
$mailbox = $connection->getMailbox(EMAIL_MAILBOX);
$search = new SearchExpression();
$messages = $mailbox->getMessages($search, \SORTDATE, true);
foreach ($messages as $message) {
	$messageNumber = $message->getNumber();
}

Here comes the stack trace:

Ddeboer\Imap\Exception\MessageDoesNotExistException: Message "12345" does not exist
imap_alerts (0):
imap_errors (0): in C:\XXX\ddeboer\vendor\ddeboer\imap\src\Message.php:119
Stack trace:
#0 C:\XXX\ddeboer\vendor\ddeboer\imap\src\Message\AbstractPart.php(163): Ddeboer\Imap\Message->assertMessageExists()
#1 C:\XXX\test.php(42): Ddeboer\Imap\Message\AbstractPart->getNumber()
#2 {main}

Can you please upgrade the library so it gets compatible with PHP 8?

Thank you so much in advance.

Best,

Ben

created time in 4 days

startedjwadhams/json-logic-php

started time in 5 days

issue openedparatestphp/paratest

PHPUnit 9 with empty data provider leads to SkippedTestError

When using PHPUnit 9 with either paratest v5 or v6 and an empty data provider you paratest outputs a fatal error:

$ vendor/bin/phpunit 
PHPUnit 9.4.3 by Sebastian Bergmann and contributors.

S                                                                   1 / 1 (100%)

Time: 00:00.006, Memory: 6.00 MB

OK, but incomplete, skipped, or risky tests!
Tests: 1, Assertions: 0, Skipped: 1.

$ vendor/bin/paratest 

In DocBlock.php line 291:
                                        
  [PHPUnit\Framework\SkippedTestError]  
                                        

paratest [--bootstrap BOOTSTRAP] [--colors] [-c|--configuration CONFIGURATION] [--coverage-clover COVERAGE-CLOVER] [--coverage-cobertura COVERAGE-COBERTURA] [--coverage-crap4j COVERAGE-CRAP4J] [--coverage-html COVERAGE-HTML] [--coverage-php COVERAGE-PHP] [--coverage-test-limit COVERAGE-TEST-LIMIT] [--coverage-text] [--coverage-xml COVERAGE-XML] [--exclude-group EXCLUDE-GROUP] [--filter FILTER] [-f|--functional] [-g|--group GROUP] [-h|--help] [--log-junit LOG-JUNIT] [--log-teamcity LOG-TEAMCITY] [-m|--max-batch-size MAX-BATCH-SIZE] [--no-test-tokens] [--order-by [ORDER-BY]] [--parallel-suite] [--passthru PASSTHRU] [--passthru-php PASSTHRU-PHP] [--path PATH] [-p|--processes PROCESSES] [--random-order-seed [RANDOM-ORDER-SEED]] [--runner RUNNER] [--stop-on-failure] [--testsuite TESTSUITE] [--tmp-dir TMP-DIR] [-v|--verbose VERBOSE] [--whitelist WHITELIST] [--] [<path>]


Steps to replicate: https://github.com/bytestream/phpunit-4493

created time in 5 days

fork ddeboer/bref

Serverless PHP on AWS Lambda

https://bref.sh

fork in 6 days

fork ddeboer/message-serializer

Serialize messages for transport over the wire

fork in 6 days

fork ddeboer/symfony-messenger

Bridge to use Symfony Messenger on AWS Lambda with Bref

fork in 6 days

fork ddeboer/vcr-plugin

Record your test suite's HTTP interactions and replay them during future test runs.

http://httplug.io

fork in 6 days

fork ddeboer/HttplugBundle

Symfony Framework Integration for HTTPlug

http://httplug.io

fork in 6 days

pull request commentparatestphp/paratest

Update to Infection 0.20

Codecov Report

Merging #564 (fdb5959) into master (ea988e5) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##              master      #564   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
  Complexity       569       569           
===========================================
  Files             25        25           
  Lines           1769      1769           
===========================================
  Hits            1769      1769           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update ea988e5...fdb5959. Read the comment docs.

Slamdunk

comment created time in 6 days

pull request commentparatestphp/paratest

[PHP 8] Warning: Private methods cannot be final as they are never overridden by other classes

I'd like to wait PHP 8 GA

GA today! 🎉 https://www.php.net/releases/8.0/en.php

tugmaks

comment created time in 6 days

fork Seldaek/form

The Form component allows you to easily create, process and reuse HTML forms.

https://symfony.com/form

fork in 6 days

created repositoryShittySoft/kanbanbox-2020-cqrs-es-workshop

created time in 7 days

issue openedSlamdunk/phpstan-laminas-framework

Method ::getRequest() in controller returns wrong class

PhpStan shows following errors after installation of phpstan-laminas-framework. The problem is that this Controller is never called from console (only phpstan is called from cli). Is there any option to set right class for method getRequest()?

PhpStan output:

 ------ -------------------------------------------------------------------
  Line   app/src/Controller/TestController.php
 ------ -------------------------------------------------------------------
  59     Call to an undefined method Laminas\Console\Request::getMethod().
  113    Call to an undefined method Laminas\Console\Request::isPost().
 ------ -------------------------------------------------------------------

Example:

public function testAction() {
    if (!in_array($this->getRequest()->getMethod(), [Request::METHOD_POST])) {
        throw new \Exception(...)
    }

    ...

    if ($this->getRequest()->isPost()) {
        $post = $this->getPost();
        ...
    }
}

created time in 8 days

created tagCodeception/module-mezzio

tag2.0.2

Codeception Module for Mezzio framework (formerly known as Zend Expressive)

created time in 8 days

release Codeception/module-mezzio

2.0.2

released time in 8 days

more