public function testPluckTopicName() { $res = $this->trait->pluckName('topic', 'projects/foo/topics/bar'); $this->assertEquals('bar', $res); }