]> git.agnieray.net Git - galette.git/blobdiff - tests/Galette/Core/tests/units/Picture.php
Improve coding standards
[galette.git] / tests / Galette / Core / tests / units / Picture.php
index d5a6786995fe7f7e574e2621f54038e7c32b48af..1837655b3bba7b8410648f3219abb0efec993583 100644 (file)
@@ -75,7 +75,7 @@ class Picture extends TestCase
      *
      * @return void
      */
-    public function testDefaults()
+    public function testDefaults(): void
     {
         $picture = new \Galette\Core\Picture();
         $this->assertNull($picture->getDestDir());
@@ -103,7 +103,7 @@ class Picture extends TestCase
      *
      * @return void
      */
-    public function testSetters()
+    public function testSetters(): void
     {
         $this->assertNull($this->picture->getDestDir());
         $this->assertNull($this->picture->getFileName());
@@ -121,7 +121,7 @@ class Picture extends TestCase
      *
      * @return void
      */
-    public function testFileInfoMimeType()
+    public function testFileInfoMimeType(): void
     {
         $url = realpath(GALETTE_ROOT . '../tests/fake_image.jpg');
         $this->assertNotFalse($url);
@@ -163,7 +163,7 @@ class Picture extends TestCase
      *
      * @return void
      */
-    public function testStore()
+    public function testStore(): void
     {
         foreach ($this->expected_badchars as $badchar) {
             $expected = \Galette\Core\Picture::INVALID_FILENAME;
@@ -203,7 +203,7 @@ class Picture extends TestCase
      *
      * @return void
      */
-    public function testErrorMessages()
+    public function testErrorMessages(): void
     {
         $this->assertSame(
             'File name is invalid, it should not contain any special character or space.',