Skip to content

Commit f4dd7b4

Browse files
tpetrygithub-actions[bot]
authored andcommitted
Fix styling
1 parent 3e83942 commit f4dd7b4

5 files changed

+22
-22
lines changed

tests/LaravelQueryTest.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
class LaravelQueryTest extends TestCase
1313
{
14-
public function testConstructorValues(): void
14+
public function test_constructor_values(): void
1515
{
1616
$date = new DateTimeImmutable('@1199699021');
1717
$query = new LaravelQuery(
@@ -30,7 +30,7 @@ public function testConstructorValues(): void
3030
$this->assertEquals([1, 1, 0, $date->format(DB::connection('mysql')->getQueryGrammar()->getDateFormat())], $query->getParameters());
3131
}
3232

33-
public function testExecuteWithoutParameters(): void
33+
public function test_execute_without_parameters(): void
3434
{
3535
$query = new LaravelQuery(DB::connection(), "SELECT 'unused'", ['not-used']);
3636

@@ -39,7 +39,7 @@ public function testExecuteWithoutParameters(): void
3939
$this->assertEquals([['val' => 1], ['val' => 2]], $rows);
4040
}
4141

42-
public function testExecuteWitParameters(): void
42+
public function test_execute_wit_parameters(): void
4343
{
4444
$query = new LaravelQuery(DB::connection(), "SELECT 'unused'", [1, 2]);
4545

tests/Mixins/EloquentBuilderTest.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,27 @@
1010

1111
class EloquentBuilderTest extends TestCase
1212
{
13-
public function testDdExplainForHumans(): void
13+
public function test_dd_explain_for_humans(): void
1414
{
1515
$this->markTestSkipped('how to test dump() and not exit PHPUnit on exit() call?');
1616
}
1717

18-
public function testDdVisualExplain(): void
18+
public function test_dd_visual_explain(): void
1919
{
2020
$this->markTestSkipped('how to test dump() and not exit PHPUnit on exit() call?');
2121
}
2222

23-
public function testDumpExplainForHumans(): void
23+
public function test_dump_explain_for_humans(): void
2424
{
2525
$this->markTestSkipped('how to test dump()?');
2626
}
2727

28-
public function testDumpVisualExplain(): void
28+
public function test_dump_visual_explain(): void
2929
{
3030
$this->markTestSkipped('how to test dump()?');
3131
}
3232

33-
public function testExplainForHumans(): void
33+
public function test_explain_for_humans(): void
3434
{
3535
$model = new class extends Model {};
3636
$builder = $model->newQuery();
@@ -45,7 +45,7 @@ public function testExplainForHumans(): void
4545
$this->assertEquals('https://dummy-url-A5mhRHJXvC.local/I2aifhDBCO', $url);
4646
}
4747

48-
public function testVisualExplain(): void
48+
public function test_visual_explain(): void
4949
{
5050
$model = new class extends Model {};
5151
$builder = $model->newQuery();

tests/Mixins/QueryBuilderTest.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,27 @@
1010

1111
class QueryBuilderTest extends TestCase
1212
{
13-
public function testDdExplainForHumans(): void
13+
public function test_dd_explain_for_humans(): void
1414
{
1515
$this->markTestSkipped('how to test dump() and not exit PHPUnit on exit() call?');
1616
}
1717

18-
public function testDdVisualExplain(): void
18+
public function test_dd_visual_explain(): void
1919
{
2020
$this->markTestSkipped('how to test dump() and not exit PHPUnit on exit() call?');
2121
}
2222

23-
public function testDumpExplainForHumans(): void
23+
public function test_dump_explain_for_humans(): void
2424
{
2525
$this->markTestSkipped('how to test dump()?');
2626
}
2727

28-
public function testDumpVisualExplain(): void
28+
public function test_dump_visual_explain(): void
2929
{
3030
$this->markTestSkipped('how to test dump()?');
3131
}
3232

33-
public function testExplainForHumans(): void
33+
public function test_explain_for_humans(): void
3434
{
3535
$builder = DB::table('test123');
3636
MysqlExplain::shouldReceive('submitBuilder')
@@ -43,7 +43,7 @@ public function testExplainForHumans(): void
4343
$this->assertEquals('https://dummy-url-f6V7VImZnz.local', $url);
4444
}
4545

46-
public function testVisualExplain(): void
46+
public function test_visual_explain(): void
4747
{
4848
$builder = DB::table('test123');
4949
MysqlExplain::shouldReceive('submitBuilder')

tests/MysqlExplainTest.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class MysqlExplainTest extends TestCase
2121
{
22-
public function testSubmitBuilderForwardsCall(): void
22+
public function test_submit_builder_forwards_call(): void
2323
{
2424
$builder = DB::connection()->table('test')->where('col', 1);
2525
$mysqlExplain = Mockery::mock(MysqlExplain::class.'[submitQuery]')
@@ -34,7 +34,7 @@ public function testSubmitBuilderForwardsCall(): void
3434
$this->assertEquals('https://dummy-url-LTGq4mDWlo.local/PTzphBiWQW', $url);
3535
}
3636

37-
public function testSubmitQueryFailsWhenMariadbFeatureIsDetected(): void
37+
public function test_submit_query_fails_when_mariadb_feature_is_detected(): void
3838
{
3939
$this->expectException(NotMysqlException::class);
4040
$this->expectExceptionMessage('Only queries on mysql databases can be analyzed. mariadb query given.');
@@ -49,7 +49,7 @@ public function testSubmitQueryFailsWhenMariadbFeatureIsDetected(): void
4949
(new MysqlExplain)->submitQuery($connection, 'SELECT 1');
5050
}
5151

52-
public function testSubmitQueryFailsWhenPassedNonMysqlConnection(): void
52+
public function test_submit_query_fails_when_passed_non_mysql_connection(): void
5353
{
5454
$this->expectException(NotMysqlException::class);
5555
$this->expectExceptionMessage('Only queries on mysql databases can be analyzed. mariadb query given.');
@@ -62,15 +62,15 @@ public function testSubmitQueryFailsWhenPassedNonMysqlConnection(): void
6262
(new MysqlExplain)->submitQuery($connection, 'SELECT 1');
6363
}
6464

65-
public function testSubmitQueryFailsWhenPassedNonPdoConnection(): void
65+
public function test_submit_query_fails_when_passed_non_pdo_connection(): void
6666
{
6767
$this->expectException(NotMysqlException::class);
6868
$this->expectExceptionMessage('Only queries on mysql databases can be analyzed. unknown query given.');
6969

7070
(new MysqlExplain)->submitQuery(Mockery::mock(ConnectionInterface::class), 'SELECT 1');
7171
}
7272

73-
public function testSubmitQueryReturnsUrl(): void
73+
public function test_submit_query_returns_url(): void
7474
{
7575
$connection = DB::connection('mysql');
7676
$sql = 'SELECT * FROM customer WHERE last_name = ?';

tests/NotMysqlExceptionTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88

99
class NotMysqlExceptionTest extends TestCase
1010
{
11-
public function testCreatesExceptionWithDrivername(): void
11+
public function test_creates_exception_with_drivername(): void
1212
{
1313
$exception = NotMysqlException::create('mysql');
1414

1515
$this->assertEquals(NotMysqlException::class, $exception::class);
1616
$this->assertEquals('Only queries on mysql databases can be analyzed. mysql query given.', $exception->getMessage());
1717
}
1818

19-
public function testCreatesExceptionWithMissingDrivername(): void
19+
public function test_creates_exception_with_missing_drivername(): void
2020
{
2121
$exception = NotMysqlException::create(null);
2222

0 commit comments

Comments
 (0)