name() public method

Example: echo $topic->name();
public name ( ) : string
return string
Beispiel #1
0
 public function testName()
 {
     $topic = new Topic($this->connection->reveal(), 'test-topic-name', 'my-project');
     $this->assertEquals($topic->name(), 'projects/my-project/topics/test-topic-name');
 }