From d9cd01745d135e23b5a32d3bec3700a28280d3ec Mon Sep 17 00:00:00 2001
From: Camille Simiand <camille.simiand@tetras-libre.fr>
Date: Mon, 7 Feb 2022 16:36:43 +0100
Subject: [PATCH] Invert null comparison order

---
 tests/functional/ProjectControllerTest.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/functional/ProjectControllerTest.php b/tests/functional/ProjectControllerTest.php
index 544ceb9..0416828 100644
--- a/tests/functional/ProjectControllerTest.php
+++ b/tests/functional/ProjectControllerTest.php
@@ -254,7 +254,7 @@ class ProjectControllerTest extends WebTestCase
         $dom_xml = self::getDomDocument($capsule_directory);
         $video_node = $dom_xml->getElementsByTagName('video')->item(0);
 
-        if ($video_node === null) {
+        if (null === $video_node) {
             throw new \Exception("Video node could not be found in XML project file");
         }
 
-- 
GitLab