8 Commits

Author SHA1 Message Date
Alexander Kurilo
06104478cc Fix referencing context initializers
With definition, that has been used instead of reference, container has
used to created 2 instances of initializer: one with service id, and one
"anonymous", described by spl_object_hash in a container, it breaked
stateful initializers: in my case initializer was also used to reset
state before next scenario/example, and initializing and resetting happened
with different instances of initializer
2019-12-09 13:01:40 +01:00
Kamil Kokot
a425be697a Initialize contexts registered as services 2019-03-21 17:16:23 +01:00
Kamil Kokot
13d64ca7cb Allow accessing a context in another context 2019-03-04 13:32:16 +01:00
Alan Poulain
8a972b5b48 Apply suggestions from code review
Co-Authored-By: pamil <kamil@kokot.me>
2019-02-13 12:29:55 +01:00
Kamil Kokot
d74cd251d5 Add more sanity checks 2019-02-12 23:42:41 +01:00
Kamil Kokot
9e9529c320 Add tests for context initializers 2019-02-12 23:06:19 +01:00
Kamil Kokot
cd792704fa Add support for class resolvers 2019-02-12 22:56:42 +01:00
Kamil Kokot
9ea3ac6f30 Reorganise feature files 2019-01-10 22:01:48 +01:00