for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace ByTIC\Validator\Tests\Functions;
use ByTIC\Validator\Tests\AbstractTest;
/**
* Class GeneralTest.
*/
class GeneralTest extends AbstractTest
{
* @dataProvider data_valid_email
*
* @param string $email
* @param bool $valid
public function testValidEmail($email, $valid)
static::assertSame(valid_email($email), $valid);
}
* @return array[]
public function data_valid_email()
return [
['[email protected]', true],
['[email protected]', false],
];