Infection (Mutation Testing Framework) > fix bugs while running (generate proper code coverage, bugs while running tests randomly)

This commit is contained in:
Meritoo
2019-04-05 20:39:30 +02:00
parent 685addc7c4
commit d1c1d48473
7 changed files with 62 additions and 11 deletions

View File

@@ -15,6 +15,7 @@ use Meritoo\Common\Exception\Type\UnknownDatePartTypeException;
use Meritoo\Common\Test\Base\BaseTestCase;
use Meritoo\Common\Type\DatePeriod;
use Meritoo\Common\Utilities\Date;
use Meritoo\Common\Utilities\Locale;
/**
* Test case of the Date methods (only static functions)
@@ -200,6 +201,12 @@ class DateTest extends BaseTestCase
public function testGetCurrentDayOfWeekName()
{
// Required to avoid failure:
//
// Failed asserting that 'giovedì' matches PCRE pattern
// "/^Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday$/"
Locale::setLocale(LC_ALL, 'en', 'US');
$days = [
'Monday',
'Tuesday',