Update to phpunit 8

This commit is contained in:
Arandi Lopez 2019-12-20 17:54:46 -06:00
parent 50388c0e9d
commit 961f3d57d4
4 changed files with 585 additions and 246 deletions

1
.phpunit.result.cache Normal file
View File

@ -0,0 +1 @@
C:37:"PHPUnit\Runner\DefaultTestResultCache":1921:{a:2:{s:7:"defects";a:0:{}s:5:"times";a:22:{s:67:"LaravelProfaneTests\DictionaryTest::test_words_from_only_one_locale";d:0.006;s:65:"LaravelProfaneTests\DictionaryTest::test_words_from_only_one_file";d:0;s:64:"LaravelProfaneTests\DictionaryTest::test_words_from_locale_array";d:0;s:62:"LaravelProfaneTests\DictionaryTest::test_words_from_file_array";d:0;s:79:"LaravelProfaneTests\ProfaneValidatorTest::test_can_validate_a_word_with_numbers";d:0.001;s:66:"LaravelProfaneTests\ProfaneValidatorTest::test_can_validate_a_text";d:0.001;s:79:"LaravelProfaneTests\ProfaneValidatorTest::test_can_evaluate_profanity_of_a_word";d:0;s:83:"LaravelProfaneTests\ProfaneValidatorTest::test_can_evaluate_profanity_of_a_sentence";d:0;s:86:"LaravelProfaneTests\ProfaneValidatorTest::test_can_evaluate_profanity_of_a_html_string";d:0;s:76:"LaravelProfaneTests\ProfaneValidatorTest::test_can_evaluate_as_caseless_mode";d:0;s:63:"LaravelProfaneTests\ProfaneValidatorTest::test_match_exact_word";d:0;s:82:"LaravelProfaneTests\ProfaneValidatorTest::test_can_validate_a_bad_word_with_accent";d:0;s:75:"LaravelProfaneTests\ProfaneValidatorTest::test_enie_in_spanish_is_evaluated";d:0;s:75:"LaravelProfaneTests\ProfaneValidatorTest::test_can_validate_a_word_in_greek";d:0.001;s:75:"LaravelProfaneTests\ProfaneValidatorTest::test_can_validate_a_text_in_greek";d:0;s:85:"LaravelProfaneTests\StrTest::test_string_contains_a_piece_insensitive_match_from_text";d:0;s:76:"LaravelProfaneTests\StrTest::test_text_contains_insensitive_match_from_array";d:0;s:77:"LaravelProfaneTests\StrTest::test_text_contains_insensitive_match_from_string";d:0;s:86:"LaravelProfaneTests\StrTest::test_text_contains_the_same_insensitive_match_from_string";d:0;s:64:"LaravelProfaneTests\StrTest::test_remove_accents_in_spanish_text";d:0;s:54:"LaravelProfaneTests\StrTest::test_enie_char_is_allowed";d:0;s:57:"LaravelProfaneTests\StrTest::test_remove_accents_in_greek";d:0;}}}

View File

@ -19,8 +19,8 @@
"illuminate/support": ">=5.2"
},
"require-dev": {
"phpunit/phpunit": "^4.8",
"mockery/mockery": "^0.9.5"
"phpunit/phpunit": "^8.0",
"mockery/mockery": "^1.3"
},
"extra": {
"laravel": {

818
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -4,14 +4,14 @@ namespace LaravelProfaneTests;
use Illuminate\Support\Facades\Config;
use Mockery;
use PHPUnit_Framework_TestCase;
use PHPUnit\Framework\TestCase as PHPUnitTestCase;
class TestCase extends PHPUnit_Framework_TestCase
class TestCase extends PHPUnitTestCase
{
/**
* [setUp description].
*/
public function setUp()
public function setUp(): void
{
parent::setUp();
$this->mockConfigs();
@ -22,7 +22,7 @@ class TestCase extends PHPUnit_Framework_TestCase
*
* @return [type] [description]
*/
public function tearDown()
public function tearDown(): void
{
parent::tearDown();
Mockery::close();