Skip to content

Commit

Permalink
Fix phpunit
Browse files Browse the repository at this point in the history
  • Loading branch information
sadegh19b committed Mar 15, 2024
1 parent 589d537 commit 6d74353
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 15 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
vendor/
composer.lock
phpunit.phar
.phpunit.result.cache
15 changes: 5 additions & 10 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
>
<testsuites>
<testsuite name="Package Test Suite">
<directory suffix=".php">./tests/</directory>
<directory>tests</directory>
</testsuite>
</testsuites>
</phpunit>
</phpunit>
6 changes: 1 addition & 5 deletions tests/PersianValidationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

/**
Expand Down

0 comments on commit 6d74353

Please sign in to comment.