頻繁に変更される部分を完全一致判定してもきりがないので、ロックされているタグのみを検証する
This commit is contained in:
17
tests/MyAsserts.php
Normal file
17
tests/MyAsserts.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace Tests;
|
||||
|
||||
trait MyAsserts
|
||||
{
|
||||
/**
|
||||
* assertArraySubset()がdeprecatedって本当ですか? 配列の中に所定の値が全て含まれていることを検証します。
|
||||
* @param array $expected
|
||||
* @param array $actual
|
||||
* @param string $message
|
||||
*/
|
||||
public function assertArrayContains(array $expected, array $actual, string $message = '')
|
||||
{
|
||||
$this->assertSame($expected, array_intersect($actual, $expected), $message);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user