Code Monkey home page Code Monkey logo

Comments (4)

carlosas avatar carlosas commented on July 24, 2024

Hello, this is a known limitation. Asserting with non-src classes is a pretty new feature, but I might have an idea of how to implement a solution for that.

I will need some time to jump into this since I'm off for some days due to personal reasons.
For now I think you can exclude those files for being tested, so you are able to use your 'CustomerConstants' class. Not the best solution, but it will let you move on.
I will write back asap. Thanks for the issue.

from phpat.

carlosas avatar carlosas commented on July 24, 2024

Hello. I'm having a look to this.
You said you wanted to exclude CustomerConstants but in your rule I see andExcludingClassesThat(Selector::haveClassName(Client::class)). Is that a mistake while copying the rule here?
Another question: are you using a new version? I made a fix in 0.7.2 related to this.

I also just found an error on exclusions from regex selections. I just commited a fix and will be released with 0.7.4

from phpat.

carlosas avatar carlosas commented on July 24, 2024

It should be fixed with 0.7.2 and 0.7.4

from phpat.

doppiogancio avatar doppiogancio commented on July 24, 2024

thanks @carlosas

from phpat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.