Skip to content

Commit 0839aa9

Browse files
committed
configure workflow to recive assertions
1 parent 562c45e commit 0839aa9

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ jobs:
4646
run: vendor/bin/php-cs-fixer fix --dry-run --diff
4747

4848
- name: Run PHPUnit Tests
49-
run: vendor/bin/phpunit
49+
run: -d zend.assertions=1 -d assert.active=1 vendor/bin/phpunit

tests/FieldValidatorTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@ public function itDontValidates($values)
5555
#[Test]
5656
public function itCantCreateFieldValidatorWithInvalidRules()
5757
{
58-
ini_set('zend.assertions', '1'); // activar las aserciones
59-
ini_set('assert.active', '1');
60-
ini_set('assert.exception', '1'); // no tiene efecto en PHP 8.3+
6158
$this->expectException(AssertionError::class);
6259
new FieldValidator(344);
6360
}

0 commit comments

Comments
 (0)