Skip to content

Commit

Permalink
test: adding more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dhsananias committed Dec 31, 2023
1 parent 6c25516 commit 371c9ea
Show file tree
Hide file tree
Showing 24 changed files with 217 additions and 179 deletions.
2 changes: 1 addition & 1 deletion .phpunit.cache/test-results
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":1,"defects":{"Unit\\Anonymizers\\CreditCardAnonymizerTest::testAnonymizeCreditCardNumber":7,"Unit\\Anonymizers\\CreditCardAnonymizerTest::testAnonymizeWithDifferentSeparators":8,"Unit\\Anonymizers\\CreditCardAnonymizerTest::testAnonymizeWithoutCreditCardNumber":8,"Unit\\Detectors\\PhoneDetectorTest::testDetectsPhone#5":7,"Unit\\FacelessLoggerTest::testSingletonInstance":8,"Unit\\FacelessLoggerTest::testAddAndProcessDetectorAnonymizer":8,"Unit\\FacelessLoggerTest::testClearDefaultDetectors":8,"Unit\\FacelessLoggerTest::testClearDefaultAnonymizers":8,"Unit\\FacelessLoggerTest::testProcessMessageWithNoDetectors":8},"times":{"Unit\\Anonymizers\\BirthDateAnonymizerTest::testAnonymizeWithDashedDateFormat":0.17,"Unit\\Anonymizers\\BirthDateAnonymizerTest::testAnonymizeWithSlashedDateFormat":0,"Unit\\Anonymizers\\BirthDateAnonymizerTest::testAnonymizeWithoutDate":0,"Unit\\Anonymizers\\CreditCardAnonymizerTest::testAnonymizeCreditCardNumber":0.008,"Unit\\Anonymizers\\CreditCardAnonymizerTest::testAnonymizeWithDifferentSeparators":0,"Unit\\Anonymizers\\CreditCardAnonymizerTest::testAnonymizeWithoutCreditCardNumber":0,"Unit\\Anonymizers\\EmailAnonymizerTest::testAnonymizeEmailAddress":0.008,"Unit\\Anonymizers\\EmailAnonymizerTest::testAnonymizeMultipleEmailAddresses":0,"Unit\\Anonymizers\\EmailAnonymizerTest::testAnonymizeWithoutEmailAddress":0,"Unit\\Anonymizers\\PhoneAnonymizerTest::testAnonymizePhoneNumber":0.008,"Unit\\Anonymizers\\PhoneAnonymizerTest::testAnonymizeMultiplePhoneNumbers":0,"Unit\\Anonymizers\\PhoneAnonymizerTest::testAnonymizeWithoutPhoneNumber":0,"Unit\\Detectors\\BirthDateDetectorTest::testDetectsBrazilianFormatDate":0.014,"Unit\\Detectors\\BirthDateDetectorTest::testDetectsISOFormatDate":0,"Unit\\Detectors\\BirthDateDetectorTest::testDetectsDate#with pt-br date":0.018,"Unit\\Detectors\\BirthDateDetectorTest::testDetectsDate#with iso date":0,"Unit\\Detectors\\BirthDateDetectorTest::testDetectsDate#without date":0,"Unit\\Detectors\\BirthDateDetectorTest::testDetectsDate#without iso date":0,"Unit\\Detectors\\CreditCardDetectorTest::testDetectsCreditCard#0":0.008,"Unit\\Detectors\\CreditCardDetectorTest::testDetectsCreditCard#1":0,"Unit\\Detectors\\CreditCardDetectorTest::testDetectsCreditCard#2":0,"Unit\\Detectors\\CreditCardDetectorTest::testDetectsCreditCard#3":0,"Unit\\Detectors\\CreditCardDetectorTest::testDetectsCreditCard#4":0,"Unit\\Detectors\\CreditCardDetectorTest::testDetectsCreditCard#5":0,"Unit\\Detectors\\CreditCardDetectorTest::testDetectsCreditCard#6":0,"Unit\\Detectors\\EmailDetectorTest::testDetectsEmail#0":0.008,"Unit\\Detectors\\EmailDetectorTest::testDetectsEmail#1":0,"Unit\\Detectors\\EmailDetectorTest::testDetectsEmail#2":0,"Unit\\Detectors\\EmailDetectorTest::testDetectsEmail#3":0,"Unit\\Detectors\\PhoneDetectorTest::testDetectsPhone#0":0.008,"Unit\\Detectors\\PhoneDetectorTest::testDetectsPhone#1":0,"Unit\\Detectors\\PhoneDetectorTest::testDetectsPhone#2":0,"Unit\\Detectors\\PhoneDetectorTest::testDetectsPhone#3":0,"Unit\\Detectors\\PhoneDetectorTest::testDetectsPhone#4":0,"Unit\\Detectors\\PhoneDetectorTest::testDetectsPhone#5":0,"Unit\\FacelessLoggerTest::testSingletonInstance":0.465,"Unit\\FacelessLoggerTest::testAddAndProcessDetectorAnonymizer":0,"Unit\\FacelessLoggerTest::testClearDefaultDetectors":0.008,"Unit\\FacelessLoggerTest::testClearDefaultAnonymizers":0,"Unit\\FacelessLoggerTest::testProcessMessageWithNoDetectors":0}}
{"version":1,"defects":{"Unit\\Anonymizers\\CreditCardAnonymizerTest::testAnonymizeCreditCardNumber":7,"Unit\\Anonymizers\\CreditCardAnonymizerTest::testAnonymizeWithDifferentSeparators":8,"Unit\\Anonymizers\\CreditCardAnonymizerTest::testAnonymizeWithoutCreditCardNumber":8,"Unit\\Detectors\\PhoneDetectorTest::testDetectsPhone#5":7,"Unit\\FacelessLoggerTest::testSingletonInstance":8,"Unit\\FacelessLoggerTest::testAddAndProcessDetectorAnonymizer":8,"Unit\\FacelessLoggerTest::testClearDefaultDetectors":8,"Unit\\FacelessLoggerTest::testClearDefaultAnonymizers":8,"Unit\\FacelessLoggerTest::testProcessMessageWithNoDetectors":8},"times":{"Unit\\Anonymizers\\BirthDateAnonymizerTest::testAnonymizeWithDashedDateFormat":0.159,"Unit\\Anonymizers\\BirthDateAnonymizerTest::testAnonymizeWithSlashedDateFormat":0,"Unit\\Anonymizers\\BirthDateAnonymizerTest::testAnonymizeWithoutDate":0,"Unit\\Anonymizers\\CreditCardAnonymizerTest::testAnonymizeCreditCardNumber":0.009,"Unit\\Anonymizers\\CreditCardAnonymizerTest::testAnonymizeWithDifferentSeparators":0,"Unit\\Anonymizers\\CreditCardAnonymizerTest::testAnonymizeWithoutCreditCardNumber":0,"Unit\\Anonymizers\\EmailAnonymizerTest::testAnonymizeEmailAddress":0.008,"Unit\\Anonymizers\\EmailAnonymizerTest::testAnonymizeMultipleEmailAddresses":0,"Unit\\Anonymizers\\EmailAnonymizerTest::testAnonymizeWithoutEmailAddress":0,"Unit\\Anonymizers\\PhoneAnonymizerTest::testAnonymizePhoneNumber":0.009,"Unit\\Anonymizers\\PhoneAnonymizerTest::testAnonymizeMultiplePhoneNumbers":0,"Unit\\Anonymizers\\PhoneAnonymizerTest::testAnonymizeWithoutPhoneNumber":0,"Unit\\Detectors\\BirthDateDetectorTest::testDetectsBrazilianFormatDate":0.014,"Unit\\Detectors\\BirthDateDetectorTest::testDetectsISOFormatDate":0,"Unit\\Detectors\\BirthDateDetectorTest::testDetectsDate#with pt-br date":0.018,"Unit\\Detectors\\BirthDateDetectorTest::testDetectsDate#with iso date":0,"Unit\\Detectors\\BirthDateDetectorTest::testDetectsDate#without date":0,"Unit\\Detectors\\BirthDateDetectorTest::testDetectsDate#without iso date":0,"Unit\\Detectors\\CreditCardDetectorTest::testDetectsCreditCard#0":0.009,"Unit\\Detectors\\CreditCardDetectorTest::testDetectsCreditCard#1":0,"Unit\\Detectors\\CreditCardDetectorTest::testDetectsCreditCard#2":0,"Unit\\Detectors\\CreditCardDetectorTest::testDetectsCreditCard#3":0,"Unit\\Detectors\\CreditCardDetectorTest::testDetectsCreditCard#4":0,"Unit\\Detectors\\CreditCardDetectorTest::testDetectsCreditCard#5":0,"Unit\\Detectors\\CreditCardDetectorTest::testDetectsCreditCard#6":0,"Unit\\Detectors\\EmailDetectorTest::testDetectsEmail#0":0.008,"Unit\\Detectors\\EmailDetectorTest::testDetectsEmail#1":0,"Unit\\Detectors\\EmailDetectorTest::testDetectsEmail#2":0,"Unit\\Detectors\\EmailDetectorTest::testDetectsEmail#3":0,"Unit\\Detectors\\PhoneDetectorTest::testDetectsPhone#0":0.008,"Unit\\Detectors\\PhoneDetectorTest::testDetectsPhone#1":0,"Unit\\Detectors\\PhoneDetectorTest::testDetectsPhone#2":0,"Unit\\Detectors\\PhoneDetectorTest::testDetectsPhone#3":0,"Unit\\Detectors\\PhoneDetectorTest::testDetectsPhone#4":0,"Unit\\Detectors\\PhoneDetectorTest::testDetectsPhone#5":0,"Unit\\FacelessLoggerTest::testSingletonInstance":0.005,"Unit\\FacelessLoggerTest::testAddAndProcessDetectorAnonymizer":0,"Unit\\FacelessLoggerTest::testClearDefaultDetectors":0.007,"Unit\\FacelessLoggerTest::testClearDefaultAnonymizers":0,"Unit\\FacelessLoggerTest::testProcessMessageWithNoDetectors":0,"Unit\\Aspect\\LogAnonymizerAspectTest::testProcess":0.146}}
2 changes: 1 addition & 1 deletion Anonymizers/AnonymizerInterface.php.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
<h4>Legend</h4>
<p><span class="legend covered-by-small-tests">Covered by small (and larger) tests</span><span class="legend covered-by-medium-tests">Covered by medium (and large) tests</span><span class="legend covered-by-large-tests">Covered by large tests (and tests of unknown size)</span><span class="legend not-covered">Not covered</span><span class="legend not-coverable">Not coverable</span></p>
<p>
<small>Generated by <a href="https://github.com/sebastianbergmann/php-code-coverage" target="_top">php-code-coverage 10.1.10</a> using <a href="https://www.php.net/" target="_top">PHP 8.2.14</a> and <a href="https://phpunit.de/">PHPUnit 10.5.5</a> at Sun Dec 31 21:48:12 UTC 2023.</small>
<small>Generated by <a href="https://github.com/sebastianbergmann/php-code-coverage" target="_top">php-code-coverage 10.1.10</a> using <a href="https://www.php.net/" target="_top">PHP 8.2.14</a> and <a href="https://phpunit.de/">PHPUnit 10.5.5</a> at Sun Dec 31 21:50:57 UTC 2023.</small>
</p>
<a title="Back to the top" id="toplink" href="#">
<svg xmlns="http://www.w3.org/2000/svg" width="12" height="16" viewBox="0 0 12 16"><path fill-rule="evenodd" d="M12 11L6 5l-6 6h12z"/></svg>
Expand Down
2 changes: 1 addition & 1 deletion Anonymizers/BirthDateAnonymizer.php.html
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
<h4>Legend</h4>
<p><span class="legend covered-by-small-tests">Covered by small (and larger) tests</span><span class="legend covered-by-medium-tests">Covered by medium (and large) tests</span><span class="legend covered-by-large-tests">Covered by large tests (and tests of unknown size)</span><span class="legend not-covered">Not covered</span><span class="legend not-coverable">Not coverable</span></p>
<p>
<small>Generated by <a href="https://github.com/sebastianbergmann/php-code-coverage" target="_top">php-code-coverage 10.1.10</a> using <a href="https://www.php.net/" target="_top">PHP 8.2.14</a> and <a href="https://phpunit.de/">PHPUnit 10.5.5</a> at Sun Dec 31 21:48:12 UTC 2023.</small>
<small>Generated by <a href="https://github.com/sebastianbergmann/php-code-coverage" target="_top">php-code-coverage 10.1.10</a> using <a href="https://www.php.net/" target="_top">PHP 8.2.14</a> and <a href="https://phpunit.de/">PHPUnit 10.5.5</a> at Sun Dec 31 21:50:57 UTC 2023.</small>
</p>
<a title="Back to the top" id="toplink" href="#">
<svg xmlns="http://www.w3.org/2000/svg" width="12" height="16" viewBox="0 0 12 16"><path fill-rule="evenodd" d="M12 11L6 5l-6 6h12z"/></svg>
Expand Down
2 changes: 1 addition & 1 deletion Anonymizers/CreditCardAnonymizer.php.html
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
<h4>Legend</h4>
<p><span class="legend covered-by-small-tests">Covered by small (and larger) tests</span><span class="legend covered-by-medium-tests">Covered by medium (and large) tests</span><span class="legend covered-by-large-tests">Covered by large tests (and tests of unknown size)</span><span class="legend not-covered">Not covered</span><span class="legend not-coverable">Not coverable</span></p>
<p>
<small>Generated by <a href="https://github.com/sebastianbergmann/php-code-coverage" target="_top">php-code-coverage 10.1.10</a> using <a href="https://www.php.net/" target="_top">PHP 8.2.14</a> and <a href="https://phpunit.de/">PHPUnit 10.5.5</a> at Sun Dec 31 21:48:12 UTC 2023.</small>
<small>Generated by <a href="https://github.com/sebastianbergmann/php-code-coverage" target="_top">php-code-coverage 10.1.10</a> using <a href="https://www.php.net/" target="_top">PHP 8.2.14</a> and <a href="https://phpunit.de/">PHPUnit 10.5.5</a> at Sun Dec 31 21:50:57 UTC 2023.</small>
</p>
<a title="Back to the top" id="toplink" href="#">
<svg xmlns="http://www.w3.org/2000/svg" width="12" height="16" viewBox="0 0 12 16"><path fill-rule="evenodd" d="M12 11L6 5l-6 6h12z"/></svg>
Expand Down
2 changes: 1 addition & 1 deletion Anonymizers/EmailAnonymizer.php.html
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
<h4>Legend</h4>
<p><span class="legend covered-by-small-tests">Covered by small (and larger) tests</span><span class="legend covered-by-medium-tests">Covered by medium (and large) tests</span><span class="legend covered-by-large-tests">Covered by large tests (and tests of unknown size)</span><span class="legend not-covered">Not covered</span><span class="legend not-coverable">Not coverable</span></p>
<p>
<small>Generated by <a href="https://github.com/sebastianbergmann/php-code-coverage" target="_top">php-code-coverage 10.1.10</a> using <a href="https://www.php.net/" target="_top">PHP 8.2.14</a> and <a href="https://phpunit.de/">PHPUnit 10.5.5</a> at Sun Dec 31 21:48:12 UTC 2023.</small>
<small>Generated by <a href="https://github.com/sebastianbergmann/php-code-coverage" target="_top">php-code-coverage 10.1.10</a> using <a href="https://www.php.net/" target="_top">PHP 8.2.14</a> and <a href="https://phpunit.de/">PHPUnit 10.5.5</a> at Sun Dec 31 21:50:57 UTC 2023.</small>
</p>
<a title="Back to the top" id="toplink" href="#">
<svg xmlns="http://www.w3.org/2000/svg" width="12" height="16" viewBox="0 0 12 16"><path fill-rule="evenodd" d="M12 11L6 5l-6 6h12z"/></svg>
Expand Down
2 changes: 1 addition & 1 deletion Anonymizers/PhoneAnonymizer.php.html
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
<h4>Legend</h4>
<p><span class="legend covered-by-small-tests">Covered by small (and larger) tests</span><span class="legend covered-by-medium-tests">Covered by medium (and large) tests</span><span class="legend covered-by-large-tests">Covered by large tests (and tests of unknown size)</span><span class="legend not-covered">Not covered</span><span class="legend not-coverable">Not coverable</span></p>
<p>
<small>Generated by <a href="https://github.com/sebastianbergmann/php-code-coverage" target="_top">php-code-coverage 10.1.10</a> using <a href="https://www.php.net/" target="_top">PHP 8.2.14</a> and <a href="https://phpunit.de/">PHPUnit 10.5.5</a> at Sun Dec 31 21:48:12 UTC 2023.</small>
<small>Generated by <a href="https://github.com/sebastianbergmann/php-code-coverage" target="_top">php-code-coverage 10.1.10</a> using <a href="https://www.php.net/" target="_top">PHP 8.2.14</a> and <a href="https://phpunit.de/">PHPUnit 10.5.5</a> at Sun Dec 31 21:50:57 UTC 2023.</small>
</p>
<a title="Back to the top" id="toplink" href="#">
<svg xmlns="http://www.w3.org/2000/svg" width="12" height="16" viewBox="0 0 12 16"><path fill-rule="evenodd" d="M12 11L6 5l-6 6h12z"/></svg>
Expand Down
2 changes: 1 addition & 1 deletion Anonymizers/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ <h3>Project Risks</h3>
<footer>
<hr/>
<p>
<small>Generated by <a href="https://github.com/sebastianbergmann/php-code-coverage" target="_top">php-code-coverage 10.1.10</a> using <a href="https://www.php.net/" target="_top">PHP 8.2.14</a> and <a href="https://phpunit.de/">PHPUnit 10.5.5</a> at Sun Dec 31 21:48:12 UTC 2023.</small>
<small>Generated by <a href="https://github.com/sebastianbergmann/php-code-coverage" target="_top">php-code-coverage 10.1.10</a> using <a href="https://www.php.net/" target="_top">PHP 8.2.14</a> and <a href="https://phpunit.de/">PHPUnit 10.5.5</a> at Sun Dec 31 21:50:57 UTC 2023.</small>
</p>
</footer>
</div>
Expand Down
2 changes: 1 addition & 1 deletion Anonymizers/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ <h4>Legend</h4>
<span class="success"><strong>High</strong>: 90% to 100%</span>
</p>
<p>
<small>Generated by <a href="https://github.com/sebastianbergmann/php-code-coverage" target="_top">php-code-coverage 10.1.10</a> using <a href="https://www.php.net/" target="_top">PHP 8.2.14</a> and <a href="https://phpunit.de/">PHPUnit 10.5.5</a> at Sun Dec 31 21:48:12 UTC 2023.</small>
<small>Generated by <a href="https://github.com/sebastianbergmann/php-code-coverage" target="_top">php-code-coverage 10.1.10</a> using <a href="https://www.php.net/" target="_top">PHP 8.2.14</a> and <a href="https://phpunit.de/">PHPUnit 10.5.5</a> at Sun Dec 31 21:50:57 UTC 2023.</small>
</p>
</footer>
</div>
Expand Down
Loading

0 comments on commit 371c9ea

Please sign in to comment.