Skip to content

Define the Functions trait#17

Merged
stevegrunwell merged 3 commits into
developfrom
feature/functions-trait
Nov 22, 2020
Merged

Define the Functions trait#17
stevegrunwell merged 3 commits into
developfrom
feature/functions-trait

Conversation

@stevegrunwell

Copy link
Copy Markdown
Member

The AssertWell\PHPUnitGlobalState\Functions trait exposes three methods for dealing with functions:

  1. defineFunction(string $name, \Closure $func): self
  2. redefineFunction(string $name, \Closure $func): self
  3. deleteFunction(string $name): self

This PR also adds additional documentation around runkit(7), as it's now used by both the Constants trait and Functions.

Fixes #11.

The `AssertWell\PHPUnitGlobalState\Functions` trait exposes three methods for dealing with functions:

1. `defineFunction(string $name, \Closure $func): self`
2. `redefineFunction(string $name, \Closure $func): self`
3. `deleteFunction(string $name): self`

This commit also adds additional documentation around runkit(7), as it's now used by both the `Constants` trait and `Functions`.

Fixes #11.
@stevegrunwell stevegrunwell added documentation Improvements or additions to documentation enhancement New feature or request labels Oct 31, 2020
@stevegrunwell stevegrunwell added this to the Version 0.2.0 milestone Oct 31, 2020
…with the Runkit trait in favor of more static methods on the Runkit support class
@stevegrunwell stevegrunwell merged commit fd0476c into develop Nov 22, 2020
@stevegrunwell stevegrunwell deleted the feature/functions-trait branch November 22, 2020 22:19
@stevegrunwell stevegrunwell mentioned this pull request Nov 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Let functions be redefined

1 participant