Security update for Core, with self-updated composer
[yaffs-website] / vendor / symfony / routing / Tests / Loader / AnnotationFileLoaderTest.php
index a022af44be4e5815238fc351b61c8c5652cd6169..5d54f9f99f665505f202a096dfadea640787eed6 100644 (file)
@@ -45,6 +45,15 @@ class AnnotationFileLoaderTest extends AbstractAnnotationLoaderTest
         $this->loader->load(__DIR__.'/../Fixtures/AnnotatedClasses/FooTrait.php');
     }
 
+    /**
+     * @expectedException \InvalidArgumentException
+     * @expectedExceptionMessage Did you forgot to add the "<?php" start tag at the beginning of the file?
+     */
+    public function testLoadFileWithoutStartTag()
+    {
+        $this->loader->load(__DIR__.'/../Fixtures/OtherAnnotatedClasses/NoStartTagClass.php');
+    }
+
     /**
      * @requires PHP 5.6
      */