Пример #1
0
 /**
  * @covers phpDocumentor\Partials\Collection::set
  */
 public function testProvidedPartialIsConvertedIntoHTMLWhenSettingIt()
 {
     // Arrange
     $input = 'This is a *Partial* text';
     $output = 'This is a <em>Partial</em> text';
     $this->parser->shouldReceive('text')->with($input)->andReturn($output);
     // Act
     $this->fixture->set('test', $input);
     // Assert
     $this->assertSame($output, $this->fixture['test']);
 }