Skip to content

Errors on tests #31

Open
Open
@nelsonsar

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;

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