1
0
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:
Niklas Keller 2017-04-24 16:28:56 +02:00
parent 79ab41e5bf
commit c3fc6659cd
4 changed files with 6 additions and 7 deletions

View File

@ -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,

View File

@ -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);
}
/**

View File

@ -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);
}
/**

View File

@ -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);
}
/**