I am new to laravel and php unit testing.
I am trying to run a very basic test in laravel and getting the error below while running phpunit
through command line:
Caused by PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'after
impressions
,clicks
int not null,clicks_change
float(4, 2) not null' at line 1
class ExampleTest extends TestCase {
/**
* A basic functional test example.
*
* @return void
*/
public function testStats()
{
$result = true;
$this->assertEquals(true, $result);
}
}
assertEquals
to be success first. I think I am missing something very basic.testStats()
giving the same error. @AbhikChakraborty