NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Tutorial PHPUnit


Joined: 26 Nov 2018
Posts: 36
Reply with quote
I downloaded latest version of PhpED (eval). My paid version does not have latest phpunit (8.4.3).
I tried to make a test, but nothing works.
In other IDE was very simple with composer.

Is there a phpunit tutorial?
Thanks in advance.
View user's profileFind all posts by piotrSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
http://www.nusphere.com/products/php_testing_phpunit.htm
http://www.nusphere.com/products/php_code_coverage.htm

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 26 Nov 2018
Posts: 36
Reply with quote
I get this error:
Fatal error: Class 'PHPUnit\Framework\TestCase' not found in D:\unit\test\testEmail.php on line 6
View user's profileFind all posts by piotrSend private message


Joined: 26 Nov 2018
Posts: 36
Reply with quote
The tutorial is so useless.
PEAR is deprecated and it is not used anymore.
View user's profileFind all posts by piotrSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
You can ignore that part related to PEAR, as it's indeed not used anymore.
As of the missed class, you can not run your test scripts directly.
You have to open Test Suite window (F6) and run your tests from it.
If it fails too, you have to go through the Project Settings Wizard.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 26 Nov 2018
Posts: 36
Reply with quote
[/img]
View user's profileFind all posts by piotrSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
what's about "Checking php installation in CLI (console) mode" page? Did it find any errors?
what's about phpUnit version it detected?

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 26 Nov 2018
Posts: 36
Reply with quote
I have no idea.
PhpED generates php files.
Then It says PHPUnit_Framework_TestCase is not found.
At this point PhpED deletes all generated files.

That's all.
View user's profileFind all posts by piotrSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
Funny. You showed one page and don't wont to show another. What's the reason?
and no, I didn't ask anything about how PhpED works.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 26 Nov 2018
Posts: 36
Reply with quote
Don't worry. English is not my strength.
I'll make a video to all installation process.
I am just a little tired trying to see how phpunit 8.3.4 works in PhpED.

By the way! I am a newbie to phpunit. Now I try to learn it.
View user's profileFind all posts by piotrSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
It's very unclear what you're doing.
In the beginning you posted "I get this error: Fatal error: Class 'PHPUnit\Framework\TestCase' not found in D:\unit\test\testEmail.php on line 6"
A few hours later you posted a screenshot showing very different error occurred at a very different line in a very different file located on a different disk.
I asked for screenshot of php test results but you didn't understand me.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 26 Nov 2018
Posts: 36
Reply with quote
I know it is unclear, because I never worked with phpunit. I want to learn it.
First I need to learn to install it.

https://youtu.be/-kMSjHMBuRo
View user's profileFind all posts by piotrSend private message
Tutorial PHPUnit
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 2  

  
  
 Reply to topic