/** @test */
 public function it_gets_class_info_for_given_full_class_name()
 {
     // Parsed in this format from Laravels GeneratorCommand
     $className = 'app/ProjectNamespace/Forms/PostForm';
     $expected = (object) array('namespace' => 'ProjectNamespace\\Forms', 'className' => 'PostForm');
     $classInfo = $this->formGenerator->getClassInfo($className);
     $this->assertEquals($expected, $classInfo);
 }
 /**
  * Replace the namespace for the given stub.
  *
  * @param  string $stub
  * @param  string $name
  * @return $this
  */
 protected function replaceNamespace(&$stub, $name)
 {
     $stub = str_replace('{{namespace}}', $this->formGenerator->getClassInfo($name)->namespace, $stub);
     return $this;
 }