mirror of
https://github.com/danog/amp.git
synced 2024-11-30 04:29:08 +01:00
Revert to assertEquals where order might be different, remove strict rule
This commit is contained in:
parent
79ab41e5bf
commit
c3fc6659cd
@ -25,7 +25,6 @@ return PhpCsFixer\Config::create()
|
||||
"php_unit_construct" => true,
|
||||
"php_unit_dedicate_assert" => true,
|
||||
"php_unit_fqcn_annotation" => true,
|
||||
"php_unit_strict" => true,
|
||||
"phpdoc_summary" => true,
|
||||
"phpdoc_types" => true,
|
||||
"psr4" => true,
|
||||
|
@ -45,7 +45,7 @@ class AllTest extends \PHPUnit\Framework\TestCase {
|
||||
Promise\all($promises)->onResolve($callback);
|
||||
});
|
||||
|
||||
$this->assertSame([1, 2, 3], $result);
|
||||
$this->assertEquals([1, 2, 3], $result);
|
||||
}
|
||||
|
||||
public function testArrayKeysPreserved() {
|
||||
@ -65,7 +65,7 @@ class AllTest extends \PHPUnit\Framework\TestCase {
|
||||
Promise\all($promises)->onResolve($callback);
|
||||
});
|
||||
|
||||
$this->assertSame($expected, $result);
|
||||
$this->assertEquals($expected, $result);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -72,7 +72,7 @@ class AnyTest extends \PHPUnit\Framework\TestCase {
|
||||
Promise\any($promises)->onResolve($callback);
|
||||
});
|
||||
|
||||
$this->assertSame([[], [1, 2, 3]], $result);
|
||||
$this->assertEquals([[], [1, 2, 3]], $result);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -96,7 +96,7 @@ class AnyTest extends \PHPUnit\Framework\TestCase {
|
||||
Promise\any($promises)->onResolve($callback);
|
||||
});
|
||||
|
||||
$this->assertSame($expected, $result);
|
||||
$this->assertEquals($expected, $result);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -84,7 +84,7 @@ class SomeTest extends \PHPUnit\Framework\TestCase {
|
||||
Promise\some($promises)->onResolve($callback);
|
||||
});
|
||||
|
||||
$this->assertSame([[], [0 => 1, 1 => 2, 2 => 3]], $result);
|
||||
$this->assertEquals([[], [0 => 1, 1 => 2, 2 => 3]], $result);
|
||||
}
|
||||
|
||||
public function testArrayKeysPreserved() {
|
||||
@ -104,7 +104,7 @@ class SomeTest extends \PHPUnit\Framework\TestCase {
|
||||
Promise\some($promises)->onResolve($callback);
|
||||
});
|
||||
|
||||
$this->assertSame($expected, $result);
|
||||
$this->assertEquals($expected, $result);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user