I've developed a simple test class usign PHPUnit on my PhpStorm IDE.
- PHP version: 5.4.25
- PHPUnit version 4.2.1
- MAMP 3.0.2
- PHPStorm 7.1
This is the configuration of my IDE:
And this is my Test class:
namespace test\controllers;
class AuthTest extends \PHPUnit_Framework_TestCase {
protected function setUp() {
parent::setUp(); // TODO: Change the autogenerated stub
echo "start";
}
protected function tearDown()
{
parent::tearDown(); // TODO: Change the autogenerated stub
echo "end";
}
public function testProva() {
$tot = 5;
$this->assertEquals($tot, 5);
}
}
EDIT:
This is the configuration of my test run:
When I Run the class (class name: AuthTest, file name: AuthTest.php) I obtain the following error: Process finished with exit code 255
But when I run the same class by command line phpunit path/test/folder/
it works fine.
What is wrong?