Skip to content

Commit

Permalink
Merge pull request #9337 from weirdan/validate-test-environment
Browse files Browse the repository at this point in the history
  • Loading branch information
weirdan committed Feb 19, 2023
2 parents 538b4c8 + 236c1a8 commit 863f15a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/TestEnvironmentTest.php
Original file line number Diff line number Diff line change
@@ -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',
);
}
}

0 comments on commit 863f15a

Please sign in to comment.