Skip to content

Releases: nelmio/alice

v2.3.1

14 Apr 13:50
Compare
Choose a tag to compare

Bugfixes

  • Prepare for PHPUnit 6 (#707)
  • Prepare for PHP 7.2 (#708)
  • Fixed required dependencies (#707)

v3.0.0-beta.4

19 Mar 00:05
Compare
Choose a tag to compare
v3.0.0-beta.4 Pre-release
Pre-release

Features

  • Implements method callers (#666)
  • Add method call reference resolver (#669)
  • Make NativeLoader non-final and changed its API (#681)
  • Make parameters accessible in identity (#698)

Bugfixes

  • Fix edge case on OptionalValueResolver (#671)
  • Fix escaping of the percent sign (#687)
  • Fix usage of underscore in the function name (#702)

v2.3.0

18 Mar 16:19
Compare
Choose a tag to compare

Features

  • Add support for Doctrine Inflector (#548)
  • Add support of embedded couchdb document (couchdb-odm) (#683)
  • Add range named builder (#693)

Deprecations

  • Deprecate the usage of the local flag (#557)
  • Deprecate the usage of date strings (#559)
  • Deprecate optional values with floats (#564)
  • Deprecate references in quotes (#566)
  • Deprecate setting private or protected props directly (#607)
  • Deprecate usage of non PSR-1 compliant setters (#608)
  • Deprecate usage of inaccessible constructors (#609)
  • Deprecate calling methods (#610)
  • Deprecate array hash uniqueness (#611)

Bugfixes

  • Remove usage of the deprecated method getMock (#558)
  • Document the change of behaviour of the identity function (#560)
  • Avoid using the GLOB_BRACE flag when it is not supported (#573)

v3.0.0-beta.3

16 Dec 22:42
Compare
Choose a tag to compare
v3.0.0-beta.3 Pre-release
Pre-release

Features

  • Add a context cache (#656)

Bugfixes

  • Fix wildcard resolver cache (#657)
  • Fix usage of dynamic array with functions (#655)

v3.0.0-beta.2

16 Dec 18:54
e8b7491
Compare
Choose a tag to compare
v3.0.0-beta.2 Pre-release
Pre-release

Features

  • Add a Faker provider to cast values (#622)
  • Allow to whitelist some PHP native functions (#640)

Bugfixes

  • Fix optional flag boundaries (allow extremums 0 and 100) (#623)
  • Lowered dynamic array quantifier minimal value (allow 0 and 1) (#624)
  • Fix unique scope for arrays (#634)
  • Fix function which contains numerical characters tokenization (#649)

Other changes highlight

  • Rework blackfire scripts (#633)
  • Replace the exception thrown for unclonable tests (#637)
  • Symfony Bundle configuration tweaks (#641)

v3.0.0-beta.1

13 Nov 11:58
Compare
Choose a tag to compare
v3.0.0-beta.1 Pre-release
Pre-release

Features

  • Better handling of references to inexistent fixtures (#592)
  • Automatically escape the @ character in words (#593)

Bugfix

  • Move PhpUnitBridge dependency to dev dependencies (#576)
  • Fix support for stdClass classes (#595)
  • Fix complete generation process (#596)
  • Fix FlagBag immutability (#614)
  • Fix UniqueValuesPool cached value check (#615)
  • Make ObjectBag more performant (#617)
  • Fix performance issues with Wildcard resolver (#618)
  • Fix usage of $current with identity (#619)

Changes highlight

  • Harden tests (higher coverage and make them more robust thanks to Humbug) (#571, #590)
  • Simplify mutli-dep management with (#582)
  • Make testing easier (#583, #603)
  • Enforce strict types everywhere (#587)
  • Tag the Expression Language as internal (#600)
  • Add scenarios for profiling (#613, #616)

v3.0.0-beta.0

14 Sep 13:24
Compare
Choose a tag to compare
v3.0.0-beta.0 Pre-release
Pre-release

After a few months of tedious work, the first beta of Alice 3.0 is out!

Main differences between 2.x and 3.x:

  • The persistence layer has been removed
  • Rewrite of the API to make it more extensible and more robust
  • Change in the architecture to address some limitations found in 2.x

More details on the architectural changes can be found here.

2.2.2

15 Jul 19:51
Compare
Choose a tag to compare

Bugfixes

  • Fix support for hyphens (#431)

2.2.1

14 Jul 08:52
5a15602
Compare
Choose a tag to compare

Bugfixes

  • Fix a BC break on how parameters were captured (#423)
  • Fix the usage of empty values with Faker provider (#426)

Miscellaneous

  • Add tests for the usage of typehint in setters (#427)
  • Add tests for the usage of templates declared in an included file (#424)

2.2.0

11 Jul 10:43
11de582
Compare
Choose a tag to compare

Features

  • Add support for snake_case properties (#323)
  • Add support for dots in reference names (#312)
  • Add support for Fixture parameters in PHP File (#341)
  • Don't persist ORM entities (embeddable support) (#272)
  • Enable quoting references to reflect on the changes in Symfony YAML Parser (#305)

Deprecations

  • Drop support for PHP 5.4 and 5.5 (#414)
  • Deprecate usage of the the range operator with more than two dots (#329)
  • Deprecate usage of custom context in Parsers (#342)

Bugfixes

  • Fix singularify deprecation warnings and optimize method detection (#407)
  • Fix various bugs in #355:
    • user_{alice, bob,} previously was building a reference named user_{alice, bob,}. Now builds that as a list, i.e. result in user_alice and user_bob. A deprecation warning is also thrown to warn the user that the list is poorly formatted and an exception will be thrown in v3.
    • user_{, alice, bob}: same as previous case.
    • user_{0..2}: value for <current()> were respectively '0', 1, 2; Now are all strings as states the phpdoc. Changed in #339.
    • user_{0....2}: was generating only one fixture named user_{0....2}; Now is equivalent to user_{0...2}
    • user_{2...0}: as reported in #358 was generating 4 fixtures... Now is equivalent to 0...2 which result in user_0, user_1 and user_2
    • user_{2...2}: was generating two fixtures user_1 and user_3; Now doesn't build any (the segment is [2;2[ so contains no element)
    • user_{0.2}: was generating a fixture named user_{0.2}; Now doesn't generate any.
    • user_{2..}: was generating a fixture named user_{2..}; Now doesn't generate any.
    • user_{-1..2}: was generating a fixture named user_-1..2; Now doesn't generate any. Same goes for all ranges containing a negative number
    • Deprecate the silent failing occurring when a fixture could not be built by the builder: current returns null, will throw an exception in the future.
  • Fix unique flag usage with templates (#359)
  • Fix some phpdoc (#264)
  • Fix the order in which the files were included (#314)