Skip to content

Conversation

andaniel05
Copy link

What:

  • Bug Fix
  • New Feature

Description:

Useful expectation for architecture testing on singleton classes. Example:

class Singleton
{
    private function __construct() {}
}

arch()
    ->expect('Singleton')
    ->toHaveNonPublicConstructor();

@nunomaduro
Copy link
Member

no plans for this.

@nunomaduro nunomaduro closed this Jul 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants