GromNaN
Repos
177
Followers
116
Following
95

Symfony bundle to expose your own metrics to Prometheus

12
4

XML toolbox for PHP

9
1

The Symfony PHP framework

27485
8584

Simple static Composer repository generator - For a full private Composer repo use Private Packagist

2867
475

Symfony Live Paris 2022

18
6

Events

issue comment
[Console] Fix completion

Hello @h3xx, thank you for the patch and the details. I worked on this completion script and would like to make some tests.

I'm a beginner in bash scripting, but apparently updating COMP_WORDBREAKS is not more recommended than IFS.

https://stackoverflow.com/a/12495480

Did you hit a specific issue?

Created at 15 hours ago
closed issue
How to mock a waiter ?

I'd like to mock calls to S3Client::objectExists. This method returns a Waiter instead of a Result.

  • ResultMockFactory cannot be used for this object type, as described in the doc.
  • I cannot mock the Waiter class because the method wait is final.

Code to test:

    $s3Client->objectExists([
        'Bucket' => $bucket,
        'Key' => $key,
    ])->wait();
Created at 1 day ago
issue comment
How to mock a waiter ?

Finally I used integration tests with localstack. I'm not sure mocking helpers was a good idea. Closing this issue. Can be reopen if you believe this method should be mockable.

Created at 1 day ago
delete branch
GromNaN delete branch setup/v1.1
Created at 2 days ago
issue comment
Add function twig *_name for intl

maybe some utest (coverage) could be added for the new code?

I don't know how to do it.

You can add test files in extra/intl-extra/Tests/Fixtures and run the test command:

cd extra/intl-extra
composer install
vendor/bin/simple-phpunit
Created at 2 days ago
started
Created at 3 days ago
started
Created at 3 days ago
reopened issue
How to mock a waiter ?

I'd like to mock calls to S3Client::objectExists. This method returns a Waiter instead of a Result.

  • ResultMockFactory cannot be used for this object type, as described in the (doc)[https://async-aws.com/features/tests.html].
  • I cannot mock the Waiter class because the method wait is final.

Code to test:

    $s3Client->objectExists([
        'Bucket' => $bucket,
        'Key' => $key,
    ])->wait();
Created at 6 days ago
closed issue
How to mock a waiter ?

I'd like to mock calls to S3Client::objectExists. This method returns a Waiter instead of a Result.

  • ResultMockFactory cannot be used for this object type, as described in the (doc)[https://async-aws.com/features/tests.html].
  • I cannot mock the Waiter class because the method wait is final.

Code to test:

    $s3Client->objectExists([
        'Bucket' => $bucket,
        'Key' => $key,
    ])->wait();
Created at 6 days ago
opened issue
How to mock a waiter ?

I'd like to mock calls to S3Client::objectExists. This method returns a Waiter instead of a Result.

  • ResultMockFactory cannot be used for this object type, as described in the (doc)[https://async-aws.com/features/tests.html].
  • I cannot mock the Waiter class because the method wait is final.

Code to test:

    $s3Client->objectExists([
        'Bucket' => $bucket,
        'Key' => $key,
    ])->wait();
Created at 6 days ago