Skip to content

Errors on tests #31

Description

@nelsonsar

When you run Onion test you get, for example:
Undefined property: tests\Onion\Dependency\DependencyResolverTest::$logger

Because some tests use $logger as a static variable but it is not. So we have two approaches:

  1. Use mocked instances of logger;
  2. Creating an instance of logger to each test;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions