The dirname did not match the class namespace. Now it does. And I added some tests so that its actually being tested for stuff like this.