以下の内容はhttps://dev-dub.hatenablog.com/entry/2020/03/16/220720より取得しました。


PHPUnit: private property の値をテストする

$this->getHiddenProperty() を利用する

class Hoge
{
    private $hidden;
final class HogeTest extends TestCase
{
    /**
     * @test
     */
     public function プライペートプロパティのテスト()
    {
        $hoge = new Hoge();

        $this->assertEquals(
            'expected value',
            $this->getHiddenProperty($hoge, 'hidden')->getValue($hoge)
        );



以上の内容はhttps://dev-dub.hatenablog.com/entry/2020/03/16/220720より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14