Google\Cloud\Tests\Snippets\Datastore\KeyTest::testPathEndIdentifierType PHP Method

testPathEndIdentifierType() public method

    public function testPathEndIdentifierType()
    {
        $snippet = $this->snippetFromMethod(Key::class, 'pathEndIdentifierType');
        $snippet->addLocal('key', $this->key);
        $this->key->pathElement('Foo', 'Bar');
        $this->key->pathElement('Foo', 'Baz');
        $res = $snippet->invoke('lastPathElementIdentifierType');
        $this->assertEquals(Key::TYPE_NAME, $res->returnVal());
    }