Skip to content

[PHPUnit] tests without assertion must be marked #2137

@TomasVotruba

Description

@TomasVotruba

https://stackoverflow.com/a/51133268/1348344

+/**
+ * @doesNotPerformAssertions
+ */
 public function testSomething()
 {
     $someService = new SomeObject();
     $someService->shallNotFail();
 }

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