Skip to content

Commit c25b090

Browse files
committed
Fix tests
1 parent 18bf494 commit c25b090

File tree

7 files changed

+8
-4
lines changed

7 files changed

+8
-4
lines changed

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
}],
1010
"require": {
1111
"php": "^7.1.3",
12+
"ext-dom": "*",
13+
"ext-json": "*",
14+
"ext-simplexml": "*",
1215
"illuminate/support": "5.8.*",
1316
"nesbot/carbon": "^1.26.3 || ^2.0",
1417
"symfony/filesystem": "^4.2",
File renamed without changes.
File renamed without changes.

tests/array/ArrayExceptValueTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
class ArrayExceptValueTest extends TestCase
88
{
99
/** @test */
10-
public function it_returns_array_itself_after_excluding_unexisting_value()
10+
public function it_returns_array_itself_after_excluding_not_existing_value()
1111
{
1212
$this->assertEquals([], array_except_value([], null));
1313
$this->assertEquals([], array_except_value([], 'foo'));

tests/db/DbMysqlVariableTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
class DbMysqlVariableTest extends TestCase
88
{
99
/** @test */
10-
public function it_returns_false_for_unexisting_mysql_variable()
10+
public function it_returns_false_for_not_existing_mysql_variable()
1111
{
1212
$mock = mock('alias:Illuminate\Support\Facades\DB');
1313
$mock->expects()->selectOne('show variables where variable_name = ?', ['fake'])->andReturnNull();

tests/email/ToSwiftmailerEmailsTest.php renamed to tests/email/ToSwiftMailerEmailsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Illuminated\Helpers\Tests\TestCase;
66

7-
class ToSwiftmailerEmailsTest extends TestCase
7+
class ToSwiftMailerEmailsTest extends TestCase
88
{
99
/** @test */
1010
public function it_returns_an_empty_array_for_empty_array()

tests/format/GetDumpTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Illuminated\Helpers\Tests\Format;
44

5+
use Illuminate\Support\Arr;
56
use Illuminated\Helpers\Tests\TestCase;
67

78
class GetDumpTest extends TestCase
@@ -90,7 +91,7 @@ public function it_correctly_dumps_array_with_huge_amount_of_items()
9091
public function it_correctly_dumps_array_with_depth_50()
9192
{
9293
$key = trim(str_repeat('foo.', 50), '.');
93-
$array = array_add([], $key, 'bar');
94+
$array = Arr::add([], $key, 'bar');
9495

9596
$dump = get_dump($array);
9697
$this->assertStringNotContainsString('', $dump);

0 commit comments

Comments
 (0)