mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
Added the test to validate test environment itself
We should make sure that the environment the tests are run is as strict as possible. For example, zend.assertions should be enabled.
This commit is contained in:
parent
5fe902bde5
commit
236c1a8ae5
19
tests/TestEnvironmentTest.php
Normal file
19
tests/TestEnvironmentTest.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace Psalm\Tests;
|
||||
|
||||
use PHPUnit\Framework\TestCase as PHPUnitTestCase;
|
||||
|
||||
use function ini_get;
|
||||
|
||||
class TestEnvironmentTest extends PHPUnitTestCase
|
||||
{
|
||||
public function testIniSettings(): void
|
||||
{
|
||||
$this->assertSame(
|
||||
'1',
|
||||
ini_get('zend.assertions'),
|
||||
'zend.assertions should be set to 1 to increase test strictness',
|
||||
);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user