/** * @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()); }