Skip to content

Latest commit

 

History

History
136 lines (114 loc) · 6.02 KB

CHANGELOG.md

File metadata and controls

136 lines (114 loc) · 6.02 KB

Change Log

All notable changes to this project will be documented in this file. Updates should follow the Keep a CHANGELOG principles.

[Unreleased][unreleased]

[4.0.1]

Added

  • Support for symfony 6.x components (#243)
  • Support for PHP 8.1 (#242)

Changed

  • Namespaced global functions and udpated usages (#245)

[4.0.0]

Added

  • Allow exercises to provide initial solution files (#183)
  • Framework logger (#188)
  • Abstract testing classes for easier testing: BaseTest & ContainerAwareTest (#188)
  • Abstract exercise test class for exercise integration tests (#189)
  • findByClassName to ExerciseRepository (#189)
  • each to ArrayObject (#193)
  • collect global function to create collection instance (#193)
  • More assertions to the workshop integration test base class (#194)
  • pluralise global function (#196)
  • CodeExistsCheck check (#197)
  • ksort to ArrayObject (#199)
  • Path util to join file system paths (#203)
  • getTemporaryFile to BaseTest (#204)
  • System util for realpath'ing and getting temp directory (#205)
  • application.tear-down event when workshop is shutting down (#212)
  • any global function (#213)
  • --debug flag to dump logs to console (#213)
  • Support for class based transformers (#220)
  • ForceStrictTypes transformer (#220)
  • FileComparisonCheck check for external files (#202)
  • Logging for when code patches fail (#222)
  • WrapInTryCatch transformer (#229)
  • Link to website on mac (#230)

Changed

  • Center CLI menu by default (#184)
  • Improved exception handling for missing problem files (#190)
  • Copy solution files to temporary directory before running (#209)
  • Patch reference solutions as well as student solutions (#211)
  • Upgrade to phpunt/phpunit 8 (#216)
  • Disable Xdebug when verifying solutions (#225)
  • Log file patching & don't revert patch when in debug mode (#224)
  • Improve general error handling (#227)
  • Check solution file exists in run command (#231)

Fixed

  • FunctionVisitor indexing issue when multiple functions are required and only some found (#192)
  • CodePatcher should retain the position of declare statements when patching code (#207)
  • Type error with code patches (#219)

[3.0.1]

Changed

  • Updated to fakerphp/faker package and new version to support PHP8 (#182)

[3.0.0]

Added

  • Add support for PHP 8.0 (#176)
  • Add support for PHP 7.4 (#164)
  • Docblock cleanup (#166)
  • Added phpstan on maximum level and improved type coverage (#167)
  • declared strict_types in all files (#180)

Changed

  • Use symfony/phpunit-bridge to test on more versions of PHP then phpunit allows (#164)
  • Coding standards checks updated to use PSR-12 (#165)
  • Updated php-school/cli-menu (#169)
  • Swapped zendframework/zend-diactoros for guzzlehttp/guzzle (#172)
  • Updated internal composer to 2.0 (#173)
  • Switch to PSR-11 (#177)
  • Updated symfony components (#178)

Removed

  • Removed support for PHP < 7.2 (#164)
  • Dropped beberlei/assert (#171)
  • All usages of prophecy (#174)

[2.2.0]

Added

  • Builds for PHP 7.1 & 7.2 (#160)

Changed

  • Updated kadet/keylighter to 0.8.3 to fix an error on PHP 7.2 (#159)
  • Updated aydin-hassan/cli-md-renderer to ^2.3 (#162)

Fixed

  • Fixed a bug where cli arguments added via events were not passed to the result objects (#157)
  • Fixed solution program syntax highlighting (#161)

Removed

  • Removed support for symfony 2.x components and dropped builds from travis with different versions of symfony (#160)

[2.1.0]

Changed

  • Updated nikic/php-parser to ^3.0 (#154)
  • Dropped php-school/psx in favour of kadet/keylighter (#154)
  • Updated aydin-hassan/cli-md-renderer to ^2.2 which also uses kadet/keylighter instead of php-school/psx (#154)

[2.0.0]

Added

  • Added new exercise runner (Custom Runner) which allows for an exercise to not require a php solution. For example an exercise can now request the student install a piece of software and then the exercise will verify that it was installed. (#141)
  • Global function for specifying an event listener as lazy. Eg the listener is registered in the container and should be pulled at runtime (#138)
  • Exercise runners now return their required checks via getRequiredChecks (#137)
  • Each runner now requires a factory which implements ExerciseRunnerFactoryInterface which can add arguments to the command and create instances of the runner (#137)

Changed

  • Refactor results and result renderers and improve the verification output (#142)
  • CLI exercises can now return an array of argument arrays which will run the program with each set of arguments, just like CGI exercises (BC is preserved here - 1 set of arguments is still accepted) (#142)
  • Event listener config format has changed. Listeners must be grouped under an arbitrary key (think name of the feature requiring the listeners - see PR for example) (#138)
  • Refactored some listeners to use more specific events and event objects (#140)
  • Extract getSolution to it's own interface ProvidesSolution. BC is preserved as CliExercise & CgiExercise now extend from it (#139)
  • Refactor everything dealing with the input file to use an Input object where the command line arguments can be retrieved from. This is BC break for checks, commands, self checking exercises and event listeners dealing with the fileName parameter (#135)

[1.2.0]

Added

  • Added ability to register event listeners via config as either callables or the name of a callable container entry (#133)
  • Added an event dispatch for whenever an exercise is selected via the menu (#134)

[1.1.0]

Fixed

  • Menu items now update the status when progress is reset (#131, #86)
  • Added tests for ResultRendererFactory and fixed the interface validation (#126)

Changed

  • Improved message when a solution fails (#129)

Added

  • Added feature to put workshop in tutorial mode where exercises must be completed one after another (#127)
  • Updated dependencies (5d16877)
  • Added list support to markdown problem files (#132)