From 6d743539179b09efa24f648f2deaf30392d64c5d Mon Sep 17 00:00:00 2001 From: Sadegh Barzegar Date: Sat, 16 Mar 2024 03:11:08 +0330 Subject: [PATCH] Fix phpunit --- .gitignore | 1 + phpunit.xml | 15 +++++---------- tests/PersianValidationTest.php | 6 +----- 3 files changed, 7 insertions(+), 15 deletions(-) diff --git a/.gitignore b/.gitignore index 2140d19..d5c3212 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ vendor/ composer.lock phpunit.phar +.phpunit.result.cache \ No newline at end of file diff --git a/phpunit.xml b/phpunit.xml index 36f0c40..7b749b4 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,17 +1,12 @@ - - ./tests/ + tests - + \ No newline at end of file diff --git a/tests/PersianValidationTest.php b/tests/PersianValidationTest.php index d500bd5..c729daf 100644 --- a/tests/PersianValidationTest.php +++ b/tests/PersianValidationTest.php @@ -34,13 +34,9 @@ class PersianValidationTest extends TestCase */ protected $persianValidator; - /** - * PersianValidationTest constructor. - */ - public function __construct() + protected function setUp(): void { $this->persianValidator = new PersianValidators(); - parent::__construct(); } /**