11<?php
2+ declare (strict_types=1 );
23
34namespace SetBased \Audit \Test \MySql \AlterAuditTableCommand ;
45
@@ -18,7 +19,7 @@ class AlterAuditTableCommandTest extends AuditTestCase
1819 /**
1920 * @inheritdoc
2021 */
21- public function setUp ()
22+ public function setUp (): void
2223 {
2324 parent ::setUp ();
2425
@@ -31,7 +32,7 @@ public function setUp()
3132 /**
3233 * Test default character set has changed.
3334 */
34- public function testCharset ()
35+ public function testCharset (): void
3536 {
3637 $ this ->base ('testCharset ' );
3738 }
@@ -40,7 +41,7 @@ public function testCharset()
4041 /**
4142 * Test default collation has changed.
4243 */
43- public function testCollation ()
44+ public function testCollation (): void
4445 {
4546 $ this ->base ('testCollation ' );
4647 }
@@ -49,7 +50,7 @@ public function testCollation()
4950 /**
5051 * Test engine has changed,
5152 */
52- public function testEngine ()
53+ public function testEngine (): void
5354 {
5455 $ this ->base ('testEngine ' );
5556 }
@@ -58,7 +59,7 @@ public function testEngine()
5859 /**
5960 * Test from 'int(11)' to 'int(8)'.
6061 */
61- public function testIntColumn ()
62+ public function testIntColumn (): void
6263 {
6364 $ this ->base ('testIntColumn ' );
6465 }
@@ -67,7 +68,7 @@ public function testIntColumn()
6768 /**
6869 * Test with many changes.
6970 */
70- public function testMany ()
71+ public function testMany (): void
7172 {
7273 $ this ->base ('testMany ' );
7374 }
@@ -76,7 +77,7 @@ public function testMany()
7677 /**
7778 * Test multiple columns changed.
7879 */
79- public function testMultipleColumns ()
80+ public function testMultipleColumns (): void
8081 {
8182 $ this ->base ('testMultipleColumns ' );
8283 }
@@ -85,7 +86,7 @@ public function testMultipleColumns()
8586 /**
8687 * Test from 'datetime' to 'timestamp'.
8788 */
88- public function testTimestampColumn ()
89+ public function testTimestampColumn (): void
8990 {
9091 $ this ->base ('testTimestampColumn ' );
9192 }
@@ -94,7 +95,7 @@ public function testTimestampColumn()
9495 /**
9596 * Test from 'varchar(10) utf8' to 'varchar(10) ascii collate ascii_bin' (same length different charset and collate).
9697 */
97- public function testVarcharColumn ()
98+ public function testVarcharColumn (): void
9899 {
99100 $ this ->base ('testVarcharColumn ' );
100101 }
@@ -106,7 +107,7 @@ public function testVarcharColumn()
106107 * @param int $statusCode The expected status code of the command.
107108 * @param bool $rewriteConfigFile If true the config file will be rewritten.
108109 */
109- protected function runAlter ($ statusCode = 0 , $ rewriteConfigFile = false )
110+ protected function runAlter (int $ statusCode = 0 , bool $ rewriteConfigFile = false ): void
110111 {
111112 $ application = new Application ();
112113 $ application ->add (new AlterAuditTableCommand ());
@@ -129,7 +130,7 @@ protected function runAlter($statusCode = 0, $rewriteConfigFile = false)
129130 /**
130131 * Runs the audit command, i.e. creates the audit table.
131132 */
132- protected function runAudit ()
133+ protected function runAudit (): void
133134 {
134135 $ application = new Application ();
135136 $ application ->add (new AuditCommand ());
@@ -151,7 +152,7 @@ protected function runAudit()
151152 *
152153 * @param string $name The name of the test.
153154 */
154- private function base ($ name )
155+ private function base (string $ name ): void
155156 {
156157 // Run audit.
157158 $ this ->runAudit ();
0 commit comments