public function testSetLastElementIdentifierTypeName() { $key = new Key('foo', ['path' => [['kind' => 'foo', 'id' => 2], ['kind' => 'foo']]]); $key->setLastElementIdentifier(1, Key::TYPE_NAME); $this->assertEquals($key->path(), [['kind' => 'foo', 'id' => 2], ['kind' => 'foo', 'name' => 1]]); }