Commit Graph

17 Commits

Author SHA1 Message Date
emily
6ac8b165f9 add composer.phar 2024-12-10 15:20:12 +01:00
Sergey Kudashev
79288dcd51 Update ApprovalTest substitute the deprecated approveString method with the recommended 2024-04-09 15:59:02 +03:00
Sergey Kudashev
5ed256af31 Style ApprovalTest fix formatting 2024-04-09 12:32:19 +03:00
Peter Kofler
4d5ca7b311 PHP: Add an Approval base test similar to Java-Approvals and CS-xunit-verify. 2023-11-29 12:13:35 +01:00
Alain Schlesser
c64b2faf74
Remove final keyword from Item class 2023-11-14 09:14:39 +00:00
Pen-y-Fan
081c69b864 Bump to PHP 8.0+
PHP 7.4 was end of life November 2022, it's time to bump to PHP 8 standard 🎉

- updated starting code to PHP 8 standard
- upgraded tooling (code quality, static analysis) to the latest versions
- tested with PHP 8.0, 8.1 and 8.2
   - the fixture is working
   - the example test is failing, as expected
   - code quality is as expected
   - static analysis is ok
2023-01-07 17:19:35 +00:00
Emily Bache
878f2da3aa
Merge pull request #366 from Chemaclass/php/update-approvals-dependency
Bugfix: Update approvals php dependency
2022-10-12 15:43:45 +02:00
Jose Maria Valera Reales
86fd140c4d Update level:max in phpstan.neon 2022-10-07 10:06:58 +02:00
Jose Maria Valera Reales
07962c0803 Bugfix: Update approvals php dependency 2022-10-07 10:01:01 +02:00
Pen-y-Fan
10d3cf7f5a Add PHP8
- update README.md with latest PHP information
- update composer.json to support PHP 7.3 to PHP8
  - active support for PHP 7.2 ended 6 Dec 2020
  - PHP8 was released 26-Nov-2020
  - update the dependencies
- PHPUnit now version 9.5 and config file updated
- ECS now version 9.3 and config file changed from `ecs.yaml` to `ecs.php`

ApprovalTest removed, in line with latest readme, all set for refactoring :)

Tested with PHP 7.3, 7.4 and 8.0 one failing "fixme" != "foo" test!
2021-05-03 16:02:47 +01:00
dependabot[bot]
9c42d32cf4
Bump symfony/http-kernel from 5.0.8 to 5.1.5 in /php
Bumps [symfony/http-kernel](https://github.com/symfony/http-kernel) from 5.0.8 to 5.1.5.
- [Release notes](https://github.com/symfony/http-kernel/releases)
- [Changelog](https://github.com/symfony/http-kernel/blob/master/CHANGELOG.md)
- [Commits](https://github.com/symfony/http-kernel/compare/v5.0.8...v5.1.5)

Signed-off-by: dependabot[bot] <support@github.com>
2020-09-08 13:27:13 +00:00
Pen-y-Fan
b4a02d3f5e Updated PHP version for PHP7.2+
Removed PHP5 (no longer supported)
Renamed PHP7 to PHP - consistent with other kata
Added the same helpers as other PHP Kata
Updated the code to PHP7.2+ standard
Didn't change GildedRose updateQuality method
Updated GildedRoseTest (still failing)
Added ApprovalTest (passing)
- same text file as texttests / ThirtyDays / stdout.gr (only renamed).
2020-07-23 22:49:59 +01:00
Pen-y-Fan
ed7a787e4f Updated PHP version for PHP7.2+
Removed PHP5 (no longer supported)
Renamed PHP7 to PHP - consistent with other kata
Added the same helpers as other PHP Kata
Updated the code to PHP7.2+ standard
Didn't change GildedRose updateQuality method
Updated GildedRoseTest (still failing)
Added ApprovalTest (passing)
- same text file as texttests / ThirtyDays / stdout.gr (only renamed).
2020-07-23 22:47:36 +01:00
Kevin Boyd
d1b6306324 Move php to php5 and add a php7 example that uses composer 2019-04-23 14:56:30 -07:00
Peter Kofler
a5a06c7979 add missing texttest fixture for PHP code 2014-04-13 15:57:10 +02:00
Peter Kofler
86ee732b39 add Eclipse project setup for PHP project 2014-04-01 20:06:59 +02:00
Peter Kofler
09355abb56 port GildedRose Java version to PHP with PHPUnit test 2014-04-01 20:06:25 +02:00