Skip to content
Snippets Groups Projects
Commit d9cd0174 authored by Camille Simiand's avatar Camille Simiand
Browse files

Invert null comparison order

parent 278c6b16
Branches
Tags
1 merge request!48tuleap-133-change-the-video-url-of-a-capsule
Pipeline #780 passed
......@@ -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");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment