replacePlaceholders() публичный Метод

public replacePlaceholders ( $replacement )
Пример #1
0
 /**
  * @test
  */
 public function shouldReplacePlaceholderInStubFile()
 {
     //given
     $classStub = new ClassStub();
     //when
     $classStub->replacePlaceholders(array('class' => 'TestClassName', 'fields' => 'fieldA, fieldB'));
     //then
     $this->assertContains('TestClassName', $classStub->contents());
     $this->assertContains('fieldA, fieldB', $classStub->contents());
 }