| Q | ใ
| -------------------- | ---------------
| PHPUnit ๋ฒ์ | 8.5.0
| PHP ๋ฒ์ | 7.3.12
| ์ค์น ๋ฐฉ๋ฒ | PHAR
PHPUnit\Framework\TestCase::__constructor
๋ฉ์๋๋ ๋ค์ ๋ฉ์์ง์ ํจ๊ป ๋ด๋ถ๋ก ํ์๋ฉ๋๋ค.
<strong i="13">@internal</strong> This method is not covered by the backward compatibility promise for PHPUnit
๋ฐฉ๋ฒ์ ๋ด๋ถ๋ก ํ์๋๋ฉฐ BC์์ ๋ค๋ฃจ์ง ์๋๋ค๋ ์ ํธ๋ฅผ ๋ณด๋ด๋ ๊ฒ ๊ฐ์ต๋๋ค.
๊ทธ๋ฌ๋ ๊ทธ๊ฒ์ ์์ ์ ์ค์ํธ์์ TestCase
๋ฅผ ํ์ฅํ๋ ๊ธ์์์ ์ฌ์ฉํ๋๋ก ์๋ ๋์๊ธฐ ๋๋ฌธ์ ์ค์ ๋ก ๋ด๋ถ์ ์ด์ง ์์ต๋๋ค.
๋ด๋ถ ๋ฐฉ๋ฒ์ ์ฌ์ฉ์ ํ ์คํธ์์ Psalm์ ์คํํ์ฌ๋ณด๊ณ ๋ฉ๋๋ค.
ERROR: InternalMethod - tests/Xezilaires/Bridge/PhpSpreadsheet/RowIteratorTest.php:28:37 - The method PHPUnit\Framework\TestCase::__construct has been marked as internal
final class RowIteratorTest extends TestCase
PHPUnit 8.5.0์ผ๋ก ์ง์๋๋ ํ ์คํธ์์ Psalm์ ์คํํฉ๋๋ค.
ํ ์คํธ์์ ์ฌ์ฉํ๋๋ก ์๋ ๋ ๋ฉ์๋๋ ๋ด๋ถ๋ก ํ์๋์ด์๋ ์๋ฉ๋๋ค.
๋ค๋ฅธ ํ๋๋ฅผ ์ฐพ์์ต๋๋ค.
ERROR: InternalMethod - tests/Xezilaires/SpreadsheetIteratorTest.php:123:30 - The method PHPUnit\Framework\MockObject\Builder\InvocationMocker::willReturn has been marked as internal
$mocker->willReturn($spec['return']);
PHPUnit\Framework\TestCase::__constructor()
์ด ์์ ์ ํ
์คํธ์ ์ฌ์ฉ๋๋๋ก ์๋ ๋ ์์ด๋์ด๋ฅผ ์ด๋์ ์ป์๋์ง ๋ชจ๋ฅด๊ฒ ์ต๋๋ค.
์ง์ ์ฌ์ฉ๋์ง๋ ์์ง๋ง TestCase
๋ฅผ ํ์ฅํ์ฌ ctor๊ฐ ํธ์ถ๋ฉ๋๋ค. ๋ฐ๋ผ์ ๊ธฐ๋ณธ์ ์ผ๋ก ๋ชจ๋ ํ
์คํธ ์ผ์ด์ค๋ ๊ธฐ๋ณธ์ ์ผ๋ก ๋ด๋ถ ๋ฐฉ๋ฒ์ ์ฌ์ฉํฉ๋๋ค.