PHPUnit testing on plugin development?
#1
Do anyone uses PHPUnit on plugin development?

How can it be used for plugin unit testing?

Loosely related: What IDEs can be used for plugin development?

Thank you!

I'm under cygwin (windows linux-like environment), PHP 7.3.7, MyBB 1.8.30.
Reply
#2
Why you need to use PHPUnit ? this is for big OOP Projects.
if you want test your plugins , you can write and test plugins on localhost.
PHP is interpreted language and dont have Native IDE , so you can use Editors depend your taste.
For example )
I Think "Visual Studio Code" The best in terms of features and plugins.
but I Love and coding php with notepad++.

Top Editor you can Test :
Sublime Text
Visual Studio Code
Atom
Notepad++

Web,Windows,Android Programmer
Wordpress,Mybb,... Developer

Reply
#3
(2022-08-14, 12:13 AM)Mostafa.Shiraali Wrote: Why you need to use PHPUnit ?
As a learning exercise.

Quote:this is for big OOP Projects.
Good to know.

Quote:if you want test your plugins , you can write and test plugins on localhost.
PHP is interpreted language and dont have Native IDE , so you can use Editors depend your taste.
For example )
I Think "Visual Studio Code" The best in terms of features and plugins.
but I Love and coding php with notepad++.
I am using that same editor, and I'm used to it. Visual Studio Code smells of Microsoft. I'm not fond of them.

Quote:Top Editor you can Test  :
Sublime Text
Visual Studio Code
Atom
Notepad++
I'll stick to Notepad++. Thank you for your reply.
Reply
#4
You can also use netbeans (https://netbeans.apache.org/), it's my favorite IDE for big PHP projects
Do not ask me help through PM or Discord
Reply
#5
Yes, I'm using PHPUnit with PHPStorm Wink not for MyBB projects but for commercial ones.
TDD and BDD are the best development methods.
Best regards, Peter.
PHP Developer.


#gitlab #myplugins
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)