mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 12:55:26 +01:00
236c1a8ae5
We should make sure that the environment the tests are run is as strict as possible. For example, zend.assertions should be enabled.
20 lines
389 B
PHP
20 lines
389 B
PHP
<?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',
|
|
);
|
|
}
|
|
}
|