| 1 | <?php |
||
| 6 | class TestCase extends Orchestra\Testbench\TestCase |
||
|
|
|||
| 7 | { |
||
| 8 | protected function getPackageProviders($app) |
||
| 9 | { |
||
| 10 | return [ |
||
| 11 | SleepingOwlServiceProvider::class, |
||
| 12 | ]; |
||
| 13 | } |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Define environment setup. |
||
| 17 | * |
||
| 18 | * @param \Illuminate\Foundation\Application $app |
||
| 19 | * |
||
| 20 | * @return void |
||
| 21 | */ |
||
| 22 | protected function getEnvironmentSetUp($app) |
||
| 28 | |||
| 29 | protected function getPackageAliases($app) |
||
| 30 | { |
||
| 31 | return [ |
||
| 32 | |||
| 33 | ]; |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param string $url |
||
| 38 | * |
||
| 39 | * @return \Illuminate\Http\Request |
||
| 40 | */ |
||
| 41 | public function getRequest($url = 'http://www.foo.com/hello/world') |
||
| 48 | } |
||
| 49 |
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.