You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PHPUnit::assertTrue(\is_array($this->data), 'Json data is empty.');
into
PHPUnit::assertInternalType('array', $this->data, 'Json data is empty.');
But then you end up with Method assertInternalType is deprecated warning.
Expected behaviour
Suggest methods as stated in the warning:
assertInternalType() is deprecated and will be removed in PHPUnit 9. Refactor your test to use assertIsArray(), assertIsBool(), assertIsFloat(), assertIsInt(), assertIsNumeric(), assertIsObject(), assertIsResource(), assertIsString(), assertIsScalar(), assertIsCallable(), or assertIsIterable() instead.
Environment details
PhpStorm 2019.1.1 Preview
Build #PS-191.6707.42, built on April 10, 2019
JRE: 1.8.0_202-release-1483-b44 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
The text was updated successfully, but these errors were encountered:
Current behaviour
It suggests converting something like
into
But then you end up with
Method assertInternalType is deprecated
warning.Expected behaviour
Suggest methods as stated in the warning:
Environment details
PhpStorm 2019.1.1 Preview
Build #PS-191.6707.42, built on April 10, 2019
JRE: 1.8.0_202-release-1483-b44 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
The text was updated successfully, but these errors were encountered: