Skip to content

Commit

Permalink
Test enabled "zend.assertions" php.ini (#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek authored Nov 28, 2024
1 parent c43e336 commit 8ef5446
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/DynamicMethodTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function __call(string $name, array $args)
return reset($result);
}

// match native PHP behaviour as much as possible
// match native PHP behavior as much as possible
// https://3v4l.org/eAv7t
$class = static::class;
do {
Expand Down
2 changes: 1 addition & 1 deletion src/WarnDynamicPropertyTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ trait WarnDynamicPropertyTrait
{
protected function warnPropertyDoesNotExist(string $name): void
{
// match native PHP behaviour as much as possible
// match native PHP behavior as much as possible
// https://3v4l.org/2KR3m
$class = static::class;
try {
Expand Down
5 changes: 5 additions & 0 deletions tests/Phpunit/TestCaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,4 +153,9 @@ public function testCoverageImplForTestMarkedAsIncomplete(): void
\Closure::bind(fn () => $this->status = $testStatusOrig, $this, PhpunitTestCase::class)();
}
}

public function testZendAssertions(): void
{
self::assertSame('1', ini_get('zend.assertions'));
}
}

0 comments on commit 8ef5446

Please sign in to comment.