Releases: php-school/php-workshop
Releases · php-school/php-workshop
4.0.1
4.0.0
[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
toExerciseRepository
(#189)each
toArrayObject
(#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
toArrayObject
(#199)Path
util to join file system paths (#203)getTemporaryFile
toBaseTest
(#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
3.0.1
3.0.0
[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
2.2.0
[2.2.0]
Added
- Builds for PHP 7.1 & 7.2 (#160)
Changed
- Updated
kadet/keylighter
to0.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
2.0.0
[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 thefileName
parameter (#135)