Level 6
In order to make this work you need to create a custom validator and amend it to your validations object.
It is related to a misconfiguration in the PHPStorm settings. Check the PHP > Test Frameworks tab
Summer Sale! All accounts are 50% off this week.
Hi. I'm trying to write some tests in lumen app using http://lumen.laravel.com/docs/testing. I got an error when I tryed to use DatabaseMigrations.
Error:
[Symfony\Component\Debug\Exception\FatalErrorException]
Trait 'Illuminate\Foundation\Testing\DatabaseMigrations' not found
Class code:
<?php
use Illuminate\Foundation\Testing\DatabaseMigrations;
class LocationTest extends TestCase
{
use DatabaseMigrations;
public function testGetAll() {
}
}
PHP version: 5.5.9 PHPUnit version: 3.7.28
Btw, PHPStorm doesn't show any errors, it can find this trait and it really exists.
Any ideas?
Please or to participate in this conversation.