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

testPathEndIdentifier() public method

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