You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have some problems to use Hamcrest in combination with PHPUnit. I loaded phpuNit 7.0 and hamcrest-php (dev-master) with composer. The environment is PHP 7.2.
And then I build this first test:
<?php
namespace App\HamcrestTest;
use PHPUnit\Framework\TestCase;
class MyTest extends TestCase
{
public function setUp()
{
\Hamcrest\Util::registerGlobalFunctions();
}
public function testHamcrestWorks()
{
assertThat('a', is(equalTo('a')));
}
}
Executing the test I will get this error message:
There was 1 risky test:
1) App\HamcrestTest\MyTest::testHamcrestWorks
This test did not perform any assertions
The text was updated successfully, but these errors were encountered:
I have some problems to use Hamcrest in combination with PHPUnit. I loaded phpuNit 7.0 and hamcrest-php (dev-master) with composer. The environment is PHP 7.2.
And then I build this first test:
Executing the test I will get this error message:
The text was updated successfully, but these errors were encountered: