Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Development
[COSMIC] Project
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Weasel" data-source="post: 455426" data-attributes="member: 9520"><p>No, you can't easily assert that. I'm talking about unit testing. Static functions called in static functions breaks proper unit testing, besides that, using all those static methods are basically just globals. I know why one would use it, but still, it isn't the best idea. Besides that, I was asking the OP why, because it felt like he misunderstood facades from Laravel and tried to do the same.</p><p></p><p>Dependency injection is the way to go.</p><p></p><p><a href="https://stackoverflow.com/questions/5961023/unit-testing-and-static-methods" target="_blank">https://stackoverflow.com/questions/5961023/unit-testing-and-static-methods</a></p></blockquote><p></p>
[QUOTE="Weasel, post: 455426, member: 9520"] No, you can't easily assert that. I'm talking about unit testing. Static functions called in static functions breaks proper unit testing, besides that, using all those static methods are basically just globals. I know why one would use it, but still, it isn't the best idea. Besides that, I was asking the OP why, because it felt like he misunderstood facades from Laravel and tried to do the same. Dependency injection is the way to go. [URL]https://stackoverflow.com/questions/5961023/unit-testing-and-static-methods[/URL] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Development
[COSMIC] Project
Top