mezzio / mezzio-skeleton

Laminas mezzio skeleton. Begin developing PSR-15 middleware applications in seconds!
https://docs.mezzio.dev/mezzio/
BSD 3-Clause "New" or "Revised" License
120 stars 31 forks source link

Errors when executing the tests #30

Closed calvarezm70 closed 4 years ago

calvarezm70 commented 4 years ago

Bug Report

Errors when executing the tests

Q A
Version(s) 3.6.0

Summary

Errors when running the tests with a fresh installation.

Current behavior

> phpcs
PHP Deprecated:  Array and string offset access syntax with curly braces is deprecated in /.../mezzio-skeleton/vendor/squizlabs/php_codesniffer/CodeSniffer.php on line 2028
PHP Deprecated:  Array and string offset access syntax with curly braces is deprecated in /.../mezzio-skeleton/vendor/squizlabs/php_codesniffer/CodeSniffer.php on line 2033
PHP Deprecated:  Array and string offset access syntax with curly braces is deprecated in /.../mezzio-skeleton/vendor/squizlabs/php_codesniffer/CodeSniffer.php on line 2033
PHP Deprecated:  Array and string offset access syntax with curly braces is deprecated in /.../mezzio-skeleton/vendor/squizlabs/php_codesniffer/CodeSniffer.php on line 2079
PHP Deprecated:  Array and string offset access syntax with curly braces is deprecated in /.../mezzio-skeleton/vendor/squizlabs/php_codesniffer/CodeSniffer.php on line 2079
....

Time: 33ms; Memory: 6Mb

> phpunit --colors=always
PHPUnit 9.3.8 by Sebastian Bergmann and contributors.

Warning:       Your XML configuration validates against a deprecated schema.
Suggestion:    Migrate your XML configuration using "--migrate-configuration"!

WWWWW                                                               5 / 5 (100%)

Time: 00:00.022, Memory: 6,00 MB

There were 5 warnings:

1) AppTest\Handler\HomePageHandlerFactoryTest::testFactoryWithoutTemplate
PHPUnit\Framework\TestCase::prophesize() is deprecated and will be removed in PHPUnit 10. Please use the trait provided by phpspec/prophecy-phpunit.

2) AppTest\Handler\HomePageHandlerFactoryTest::testFactoryWithTemplate
PHPUnit\Framework\TestCase::prophesize() is deprecated and will be removed in PHPUnit 10. Please use the trait provided by phpspec/prophecy-phpunit.

3) AppTest\Handler\HomePageHandlerTest::testReturnsJsonResponseWhenNoTemplateRendererProvided
PHPUnit\Framework\TestCase::prophesize() is deprecated and will be removed in PHPUnit 10. Please use the trait provided by phpspec/prophecy-phpunit.

4) AppTest\Handler\HomePageHandlerTest::testReturnsHtmlResponseWhenTemplateRendererProvided
PHPUnit\Framework\TestCase::prophesize() is deprecated and will be removed in PHPUnit 10. Please use the trait provided by phpspec/prophecy-phpunit.

5) AppTest\Handler\PingHandlerTest::testResponse
PHPUnit\Framework\TestCase::prophesize() is deprecated and will be removed in PHPUnit 10. Please use the trait provided by phpspec/prophecy-phpunit.

WARNINGS!
Tests: 5, Assertions: 7, Warnings: 5.

How to reproduce

$ composer check

Expected behavior

> phpcs
.... 4 / 4 (100%)

Time: 61ms; Memory: 6MB

> phpunit --colors=always
PHPUnit 9.3.8 by Sebastian Bergmann and contributors.

.....                                                               5 / 5 (100%)

Time: 00:00.020, Memory: 6,00 MB

OK (5 tests, 7 assertions)
geerteltink commented 4 years ago

Fixed in #31