Ejemplo n.º 1
0
 /**
  * @covers phpDocumentor\Transformer\Template\Factory::getTemplatePath
  */
 public function testReturnTemplatePathFromResolver()
 {
     // Arrange
     $expected = 'test';
     $this->pathResolverMock->shouldReceive('getTemplatePath')->andReturn($expected);
     // Act
     $result = $this->fixture->getTemplatePath();
     // Assert
     $this->assertSame($expected, $result);
 }
Ejemplo n.º 2
0
 /**
  * Returns the path where all templates are stored.
  *
  * @return string
  */
 public function getTemplatesPath()
 {
     return $this->factory->getTemplatePath();
 }