Google\Cloud\Tests\Snippets\PubSub\TopicTest::testClassWithFullyQualifiedName PHP Méthode

testClassWithFullyQualifiedName() public méthode

    public function testClassWithFullyQualifiedName()
    {
        $snippet = $this->snippetFromClass(Topic::class, 1);
        $snippet->addLocal('pubsub', new \PubSubClientStub(['transport' => 'rest']));
        $res = $snippet->invoke('topic');
        $this->assertInstanceOf(Topic::class, $res->returnVal());
        $this->assertEquals(self::TOPIC, $res->returnVal()->name());
    }