Skip to content

Commit

Permalink
feat(build): update plateform files and fix php test files
Browse files Browse the repository at this point in the history
  • Loading branch information
FGRibreau committed Nov 12, 2023
1 parent 4935e39 commit 84b7038
Show file tree
Hide file tree
Showing 15 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ These amazing people have contributed code to this project:
<li><a href="http://jacobburenstam.com">Jacob Burenstam</a></li>
<li><a href="http://hermanslatman.nl">Herman Slatman</a></li>
<li><a href="https://github.com/trisix">trisix</a> — <a href="https://github.com/FGRibreau/mailchecker/commits?author=trisix" title="View the GitHub contributions of trisix on repository FGRibreau/mailchecker">view contributions</a></li>
<li><a href="http://greenkeeper.io/">Greenkeeper</a> — <a href="https://github.com/FGRibreau/mailchecker/commits?author=greenkeeperio-bot" title="View the GitHub contributions of Greenkeeper on repository FGRibreau/mailchecker">view contributions</a></li>
<li><a href="http://greenkeeper.io/">Greenkeeper</a></li>
<li><a href="http://wusty.io">Dustin Clark</a></li>
<li><a href="http://antonz.ru/">Anton Zhiyanov</a></li>
<li><a href="https://github.com/NBruel">Bruel Nicolas</a> — <a href="https://github.com/FGRibreau/mailchecker/commits?author=NBruel" title="View the GitHub contributions of Bruel Nicolas on repository FGRibreau/mailchecker">view contributions</a></li>
Expand Down
2 changes: 1 addition & 1 deletion list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55739,4 +55739,4 @@ zzuwnakb.pl
zzv2bfja5.pl
zzz.com
zzzmail.pl
zzzzzzzzzzzzz.com
zzzzzzzzzzzzz.com
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"test:elixir": "docker run -i -v $(pwd):/app -w /app elixir:1.6-slim elixir test/platform.elixir.test.exs",
"test:go": "docker run -i -v $(pwd):/app -w /app golang:1.13-alpine3.10 go test ./...",
"test:node": "mocha --timeout 10000 -r should -R spec -u tdd",
"test:php": "docker run --platform linux/amd64 -i -v $(pwd):/app -w /app phpunit/phpunit test/platform.php.test.php",
"test:php": "docker run --platform linux/amd64 -i -v $(pwd):/code -e XDEBUG_MODE=coverage -w /code pipelinecomponents/phpunit phpunit test/platform.php.test.php",
"test:python": "docker run -i -v $(pwd):/app -w /app python:2.7-alpine3.7 python test/*.test.py",
"test:python3": "docker run -i -v $(pwd):/app -w /app python:3.6-alpine3.7 python test/*.test.py",
"test:ruby": "docker run -i -v $(pwd):/app -w /app centurylink/ruby-base:2.2 ruby test/platform.ruby.test.rb",
Expand Down
2 changes: 1 addition & 1 deletion platform/clojure/mailchecker.clj

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion platform/elixir/mail_checker.ex

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion platform/go/mail_checker.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion platform/javascript/MailChecker.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion platform/node/index.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion platform/php/MailChecker.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php

namespace Fgribreau\PHP;

/**
Expand Down
6 changes: 3 additions & 3 deletions platform/php/blacklist.php
Original file line number Diff line number Diff line change
Expand Up @@ -6231,6 +6231,7 @@
"asu.su" => true,
"asu.wiki" => true,
"asub1.bace.wroclaw.pl" => true,
"asuflex.com" => true,
"asuk.com" => true,
"asurfacesz.com" => true,
"asvascx.com" => true,
Expand Down Expand Up @@ -11967,7 +11968,6 @@
"coffeetimer24.com" => true,
"coffeetunner.com" => true,
"coffygroup.com" => true,
"cognata.com" => true,
"cognitiveways.xyz" => true,
"cogpal.com" => true,
"cohwabrush.com" => true,
Expand Down Expand Up @@ -18553,7 +18553,6 @@
"ficken.de" => true,
"fickfotzen.mobi" => true,
"fictionsite.com" => true,
"fide.com" => true,
"fidelium10.com" => true,
"fidesrodzinna.pl" => true,
"fido.be" => true,
Expand Down Expand Up @@ -24959,6 +24958,7 @@
"in.mailsac.com" => true,
"in.vipmail.in" => true,
"in.warboardplace.com" => true,
"in2reach.com" => true,
"in4mail.net" => true,
"in5minutes.net" => true,
"inaby.com" => true,
Expand Down Expand Up @@ -46664,7 +46664,6 @@
"swapfinancebroker.org" => true,
"swapinsta.com" => true,
"swaps.ml" => true,
"swatch.com" => true,
"swatteammusic.com" => true,
"sweatmail.com" => true,
"swedesflyshop.com" => true,
Expand Down Expand Up @@ -49418,6 +49417,7 @@
"tu6oiu4mbcj.ml" => true,
"tu6oiu4mbcj.tk" => true,
"tualias.com" => true,
"tuamaeaquelaursa.com" => true,
"tuanhungdev.xyz" => true,
"tubanmentol.ml" => true,
"tube-dns.ru" => true,
Expand Down
2 changes: 1 addition & 1 deletion platform/python/MailChecker.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion platform/ruby/mail_checker.rb

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions platform/rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion platform/rust/src/lib.rs

Large diffs are not rendered by default.

13 changes: 8 additions & 5 deletions test/platform.php.test.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@
// Windows:
// > composer install && .\vendor\bin\phpunit.bat test\MailCheckerTest.php

require __DIR__ . '/../platform/php/MailChecker.php';
require_once __DIR__ . '/../platform/php/MailChecker.php';

class MailCheckerTest extends PHPUnit\Framework\TestCase

use Fgribreau\PHP\MailChecker;

class Platform extends \PHPUnit\Framework\TestCase
{
public function assertIsValidResult($expected, $email)
{
Expand Down Expand Up @@ -58,9 +61,9 @@ public function testReturnFalseIfThrowableDomain()
$this->isInvalid('ok@guerrillamailblock.com');
}

public function provideBlackListTests()
public static function provideBlackListTests()
{
foreach (MailChecker::blacklist() as $blacklistedDomain) {
foreach (\Fgribreau\PHP\MailChecker::blacklist() as $blacklistedDomain) {
yield [$blacklistedDomain];
}
}
Expand All @@ -80,7 +83,7 @@ public function testAddCustomDomains()
$this->isValid('foo@google.com');
$this->isValid('ok@gmail.com');

MailChecker::addCustomDomains(['youtube.com', 'google.com']);
\Fgribreau\PHP\MailChecker::addCustomDomains(['youtube.com', 'google.com']);

$this->isInvalid('foo@youtube.com');
$this->isInvalid('foo@google.com');
Expand Down

0 comments on commit 84b7038

Please sign in to comment.