22
33namespace Lanin \Laravel \ApiExceptions \Tests ;
44
5- use Illuminate \Support \ Str ;
5+ use Illuminate \Foundation \ Application ;
66use Lanin \Laravel \ApiExceptions \ApiExceptionsServiceProvider ;
77use Orchestra \Testbench \TestCase as BaseTestCase ;
8- use PHPUnit_Framework_ExpectationFailedException as PHPUnitException ;
98use ReflectionClass ;
9+ use ReflectionException ;
10+ use ReflectionMethod ;
11+ use ReflectionProperty ;
1012
1113abstract class TestCase extends BaseTestCase
1214{
1315 /**
1416 * Setup the test environment.
1517 */
16- public function setUp ()
18+ public function setUp (): void
1719 {
1820 parent ::setUp ();
1921 }
2022
2123 /**
2224 * Get package providers.
2325 *
24- * @param \Illuminate\Foundation\ Application $app
26+ * @param Application $app
2527 *
2628 * @return array
2729 */
@@ -35,7 +37,7 @@ protected function getPackageProviders($app)
3537 /**
3638 * Define environment setup.
3739 *
38- * @param \Illuminate\Foundation\ Application $app
40+ * @param Application $app
3941 * @return void
4042 */
4143 protected function getEnvironmentSetUp ($ app )
@@ -49,9 +51,10 @@ protected function getEnvironmentSetUp($app)
4951 /**
5052 * Make protected/private class property accessible.
5153 *
52- * @param string|object $class
53- * @param string $name
54- * @return \ReflectionProperty
54+ * @param string|object $class
55+ * @param string $name
56+ * @return ReflectionProperty
57+ * @throws ReflectionException
5558 */
5659 protected function getPublicProperty ($ class , $ name )
5760 {
@@ -69,9 +72,10 @@ protected function getPublicProperty($class, $name)
6972 /**
7073 * Make protected/private class method accessible.
7174 *
72- * @param string $name
73- * @param string|object $class
74- * @return \ReflectionMethod
75+ * @param string $name
76+ * @param string|object $class
77+ * @return ReflectionMethod
78+ * @throws ReflectionException
7579 */
7680 protected function getPublicMethod ($ name , $ class )
7781 {
0 commit comments