1 | <?php |
||
14 | abstract class AbstractTestCase extends AbstractPackageTestCase |
||
|
|||
15 | { |
||
16 | /** |
||
17 | * Get the service provider class. |
||
18 | * |
||
19 | * @param \Illuminate\Contracts\Foundation\Application $app |
||
20 | * |
||
21 | * @return string |
||
22 | */ |
||
23 | protected function getServiceProviderClass($app) |
||
27 | /** |
||
28 | * Define environment setup. |
||
29 | * |
||
30 | * @param \Illuminate\Foundation\Application $app |
||
31 | * |
||
32 | * @return void |
||
33 | */ |
||
34 | protected function getEnvironmentSetUp($app) |
||
46 | |||
47 | /** |
||
48 | * Setup the test environment. |
||
49 | */ |
||
50 | public function setUp() |
||
64 | |||
65 | /** |
||
66 | * Call protected/private method of a class. |
||
67 | * |
||
68 | * @param object &$object Instantiated object that we will run method on. |
||
69 | * @param string $methodName Method name to call |
||
70 | * @param array $parameters Array of parameters to pass into method. |
||
71 | * |
||
72 | * @return mixed Method return. |
||
73 | */ |
||
74 | public function invokeMethod(&$object, $methodName, array $parameters = array()) |
||
82 | } |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.