19
19
20
20
class MysqlExplainTest extends TestCase
21
21
{
22
- public function testSubmitBuilderForwardsCall (): void
22
+ public function test_submit_builder_forwards_call (): void
23
23
{
24
24
$ builder = DB ::connection ()->table ('test ' )->where ('col ' , 1 );
25
25
$ mysqlExplain = Mockery::mock (MysqlExplain::class.'[submitQuery] ' )
@@ -34,7 +34,7 @@ public function testSubmitBuilderForwardsCall(): void
34
34
$ this ->assertEquals ('https://dummy-url-LTGq4mDWlo.local/PTzphBiWQW ' , $ url );
35
35
}
36
36
37
- public function testSubmitQueryFailsWhenMariadbFeatureIsDetected (): void
37
+ public function test_submit_query_fails_when_mariadb_feature_is_detected (): void
38
38
{
39
39
$ this ->expectException (NotMysqlException::class);
40
40
$ this ->expectExceptionMessage ('Only queries on mysql databases can be analyzed. mariadb query given. ' );
@@ -49,7 +49,7 @@ public function testSubmitQueryFailsWhenMariadbFeatureIsDetected(): void
49
49
(new MysqlExplain )->submitQuery ($ connection , 'SELECT 1 ' );
50
50
}
51
51
52
- public function testSubmitQueryFailsWhenPassedNonMysqlConnection (): void
52
+ public function test_submit_query_fails_when_passed_non_mysql_connection (): void
53
53
{
54
54
$ this ->expectException (NotMysqlException::class);
55
55
$ this ->expectExceptionMessage ('Only queries on mysql databases can be analyzed. mariadb query given. ' );
@@ -62,15 +62,15 @@ public function testSubmitQueryFailsWhenPassedNonMysqlConnection(): void
62
62
(new MysqlExplain )->submitQuery ($ connection , 'SELECT 1 ' );
63
63
}
64
64
65
- public function testSubmitQueryFailsWhenPassedNonPdoConnection (): void
65
+ public function test_submit_query_fails_when_passed_non_pdo_connection (): void
66
66
{
67
67
$ this ->expectException (NotMysqlException::class);
68
68
$ this ->expectExceptionMessage ('Only queries on mysql databases can be analyzed. unknown query given. ' );
69
69
70
70
(new MysqlExplain )->submitQuery (Mockery::mock (ConnectionInterface::class), 'SELECT 1 ' );
71
71
}
72
72
73
- public function testSubmitQueryReturnsUrl (): void
73
+ public function test_submit_query_returns_url (): void
74
74
{
75
75
$ connection = DB ::connection ('mysql ' );
76
76
$ sql = 'SELECT * FROM customer WHERE last_name = ? ' ;
0 commit comments