..)
public setSection ( string $section ) : |
||
$section | string | |
리턴 | the current UriBuilder to allow method chaining |
/** * @test */ public function buildAppendsSectionIfSectionIsSpecified() { $this->mockRouter->expects($this->once())->method('resolve')->will($this->returnValue('resolvedUri')); $this->uriBuilder->setSection('SomeSection'); $expectedResult = 'resolvedUri#SomeSection'; $actualResult = $this->uriBuilder->build(); $this->assertEquals($expectedResult, $actualResult); }