/**
  * @return string
  */
 private function getFilename()
 {
     return sprintf('app/%s/%s.php', NamespaceHelper::namespaceToPath($this->model->getNamespace(), 1), $this->model->getName());
 }
 /**
  * @param string   $namespace
  * @param null|int $offset
  * @param bool     $addEndingSlash
  * @param string   $expected
  *
  * @dataProvider dataProviderForTestNamespaceToPath
  */
 public function testNamespaceToPath($namespace, $offset, $addEndingSlash, $expected)
 {
     $this->assertSame($expected, NamespaceHelper::namespaceToPath($namespace, $offset, $addEndingSlash));
 }