tissue/tests/MyAsserts.php

18 lines
486 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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);
}
}