title: How to lint Namespace based on folder's name?
body: <p>I know PHP CS Fixer and Psalm to lint PHP. I've been using both of them. But I can't find a way to lint  / validate my namespace name based on the folder.</p>
  <p>For example, in folder <code>Tests/Controllers/V1</code>, I have <code>MyControllerTest.php</code>, and it has the following codes:</p>
  <pre><code>&lt;?php
  
  // I should have correct namespace based on folder name not V2 but V1
  namespace Tests\Controllers\V2;
  
  
  .. ... my code
  </code></pre>
  <p>How can I lint the above code with correct namespace?</p>
  <p><em>NOTE: I am using PHP 7.3.</em></p>