<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://genwiki39.genealogy.net/index.php?action=history&amp;feed=atom&amp;title=GOV%2FWebservice%2FPHP%2FGovToolsTest.php</id>
	<title>GOV/Webservice/PHP/GovToolsTest.php - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://genwiki39.genealogy.net/index.php?action=history&amp;feed=atom&amp;title=GOV%2FWebservice%2FPHP%2FGovToolsTest.php"/>
	<link rel="alternate" type="text/html" href="https://genwiki39.genealogy.net/index.php?title=GOV/Webservice/PHP/GovToolsTest.php&amp;action=history"/>
	<updated>2026-07-04T03:25:08Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in GenWiki</subtitle>
	<generator>MediaWiki 1.39.13</generator>
	<entry>
		<id>https://genwiki39.genealogy.net/index.php?title=GOV/Webservice/PHP/GovToolsTest.php&amp;diff=1097467&amp;oldid=prev</id>
		<title>Andreas.Job: +kat</title>
		<link rel="alternate" type="text/html" href="https://genwiki39.genealogy.net/index.php?title=GOV/Webservice/PHP/GovToolsTest.php&amp;diff=1097467&amp;oldid=prev"/>
		<updated>2012-06-24T09:46:50Z</updated>

		<summary type="html">&lt;p&gt;+kat&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 24. Juni 2012, 11:46 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l146&quot;&gt;Zeile 146:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 146:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;?&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;?&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Kategorie:GOV-Intern]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Andreas.Job</name></author>
	</entry>
	<entry>
		<id>https://genwiki39.genealogy.net/index.php?title=GOV/Webservice/PHP/GovToolsTest.php&amp;diff=749285&amp;oldid=prev</id>
		<title>Jzedlitz: neu</title>
		<link rel="alternate" type="text/html" href="https://genwiki39.genealogy.net/index.php?title=GOV/Webservice/PHP/GovToolsTest.php&amp;diff=749285&amp;oldid=prev"/>
		<updated>2009-10-02T10:49:53Z</updated>

		<summary type="html">&lt;p&gt;neu&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
require_once &amp;#039;PHPUnit/Framework.php&amp;#039;;&lt;br /&gt;
require_once &amp;#039;GovTools.php&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
class GovToolsTest extends PHPUnit_Framework_TestCase {&lt;br /&gt;
&lt;br /&gt;
    function testNormalizeNames_BeginYear() {&lt;br /&gt;
        $place-&amp;gt;name-&amp;gt;value = &amp;#039;foobar&amp;#039;;&lt;br /&gt;
        $place-&amp;gt;name-&amp;gt;lang = &amp;#039;deu&amp;#039;;&lt;br /&gt;
        $place-&amp;gt;name-&amp;gt;{&amp;#039;begin-year&amp;#039;} = 1900;&lt;br /&gt;
        &lt;br /&gt;
        GovTools::normalizeNames($place);&lt;br /&gt;
        &lt;br /&gt;
        $this-&amp;gt;assertEquals( 0, $place-&amp;gt;name[0]-&amp;gt;begin-&amp;gt;precision );&lt;br /&gt;
        $this-&amp;gt;assertEquals(  2415021, $place-&amp;gt;name[0]-&amp;gt;begin-&amp;gt;jd);&lt;br /&gt;
    }&lt;br /&gt;
    &lt;br /&gt;
    function testNormalizeNames_EndYear() {&lt;br /&gt;
        $place-&amp;gt;name-&amp;gt;value = &amp;#039;foobar&amp;#039;;&lt;br /&gt;
        $place-&amp;gt;name-&amp;gt;lang = &amp;#039;deu&amp;#039;;&lt;br /&gt;
        $place-&amp;gt;name-&amp;gt;{&amp;#039;end-year&amp;#039;} = 1900;&lt;br /&gt;
        &lt;br /&gt;
        GovTools::normalizeNames($place);&lt;br /&gt;
        &lt;br /&gt;
        $this-&amp;gt;assertEquals( 0, $place-&amp;gt;name[0]-&amp;gt;end-&amp;gt;precision );&lt;br /&gt;
        $this-&amp;gt;assertEquals(  2415021, $place-&amp;gt;name[0]-&amp;gt;end-&amp;gt;jd);&lt;br /&gt;
    }&lt;br /&gt;
    &lt;br /&gt;
    function testNormalizeNames_ArrayOfNames() {&lt;br /&gt;
        $place-&amp;gt;name[0]-&amp;gt;value = &amp;#039;foo&amp;#039;;&lt;br /&gt;
        $place-&amp;gt;name[0]-&amp;gt;lang = &amp;#039;deu&amp;#039;;&lt;br /&gt;
        $place-&amp;gt;name[0]-&amp;gt;{&amp;#039;begin-year&amp;#039;} = 1900;&lt;br /&gt;
        $place-&amp;gt;name[1]-&amp;gt;value = &amp;#039;bar&amp;#039;;&lt;br /&gt;
        $place-&amp;gt;name[1]-&amp;gt;lang = &amp;#039;deu&amp;#039;;&lt;br /&gt;
        $place-&amp;gt;name[1]-&amp;gt;{&amp;#039;end-year&amp;#039;} = 1900;&lt;br /&gt;
        &lt;br /&gt;
        GovTools::normalizeNames($place);&lt;br /&gt;
        &lt;br /&gt;
        $this-&amp;gt;assertEquals( 0, $place-&amp;gt;name[0]-&amp;gt;begin-&amp;gt;precision );&lt;br /&gt;
        $this-&amp;gt;assertEquals( 2415021, $place-&amp;gt;name[0]-&amp;gt;begin-&amp;gt;jd);&lt;br /&gt;
        $this-&amp;gt;assertEquals( 0, $place-&amp;gt;name[1]-&amp;gt;end-&amp;gt;precision );&lt;br /&gt;
        $this-&amp;gt;assertEquals( 2415021, $place-&amp;gt;name[1]-&amp;gt;end-&amp;gt;jd);&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    /**&lt;br /&gt;
     * The most simple case, only one name.&lt;br /&gt;
     */&lt;br /&gt;
    function testGetName_OnlyOne() {&lt;br /&gt;
        $place-&amp;gt;name-&amp;gt;value = &amp;#039;foobar&amp;#039;;&lt;br /&gt;
        $place-&amp;gt;name-&amp;gt;lang = &amp;#039;deu&amp;#039;;&lt;br /&gt;
 &lt;br /&gt;
        $result = GovTools::getName($place, 2455106, &amp;#039;deu&amp;#039;  );&lt;br /&gt;
&lt;br /&gt;
        $this-&amp;gt;assertEquals(&amp;#039;foobar&amp;#039;, $result);&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    /**&lt;br /&gt;
     * Several names (without time) but with different languages.&lt;br /&gt;
     */&lt;br /&gt;
    function testGetName_MultipleLanguages() {&lt;br /&gt;
        $place-&amp;gt;name[0]-&amp;gt;value = &amp;#039;foobar&amp;#039;;&lt;br /&gt;
        $place-&amp;gt;name[0]-&amp;gt;lang = &amp;#039;fre&amp;#039;;&lt;br /&gt;
        $place-&amp;gt;name[1]-&amp;gt;value = &amp;#039;name eng&amp;#039;;&lt;br /&gt;
        $place-&amp;gt;name[1]-&amp;gt;lang = &amp;#039;eng&amp;#039;;&lt;br /&gt;
        $place-&amp;gt;name[2]-&amp;gt;value = &amp;#039;name pol&amp;#039;;&lt;br /&gt;
        $place-&amp;gt;name[2]-&amp;gt;lang = &amp;#039;pol&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
        $result = GovTools::getName($place, 2455106, &amp;#039;deu&amp;#039;  );&lt;br /&gt;
        $this-&amp;gt;assertEquals(&amp;#039;foobar&amp;#039;, $result);&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    /**&lt;br /&gt;
     * The place has only a name in a different language.&lt;br /&gt;
     */&lt;br /&gt;
    function testGetName_DifferentLanguage() {&lt;br /&gt;
        $place-&amp;gt;name-&amp;gt;value = &amp;#039;foobar&amp;#039;;&lt;br /&gt;
        $place-&amp;gt;name-&amp;gt;lang = &amp;#039;fre&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
        $result = GovTools::getName($place, 2455106, &amp;#039;deu&amp;#039;  );&lt;br /&gt;
&lt;br /&gt;
        $this-&amp;gt;assertEquals(&amp;#039;foobar&amp;#039;, $result);&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    /**&lt;br /&gt;
     * The place has an old and a new name&lt;br /&gt;
     */&lt;br /&gt;
    function testGetName_OldAndNew() {&lt;br /&gt;
        $place-&amp;gt;name[0]-&amp;gt;value = &amp;#039;old&amp;#039;;&lt;br /&gt;
        $place-&amp;gt;name[0]-&amp;gt;lang = &amp;#039;deu&amp;#039;;&lt;br /&gt;
        $place-&amp;gt;name[0]-&amp;gt;{&amp;#039;end-year&amp;#039;} = 1900;&lt;br /&gt;
        $place-&amp;gt;name[1]-&amp;gt;value = &amp;#039;new&amp;#039;;&lt;br /&gt;
        $place-&amp;gt;name[1]-&amp;gt;lang = &amp;#039;deu&amp;#039;;&lt;br /&gt;
        $place-&amp;gt;name[1]-&amp;gt;{&amp;#039;begin-year&amp;#039;} = 1900;&lt;br /&gt;
&lt;br /&gt;
        $result = GovTools::getName($place, 2455106, &amp;#039;deu&amp;#039;  );&lt;br /&gt;
        $this-&amp;gt;assertEquals(&amp;#039;new&amp;#039;, $result);&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    /**&lt;br /&gt;
     * The place has an old and a new name&lt;br /&gt;
     */&lt;br /&gt;
    function testGetName_OldAndNew_WithDay() {&lt;br /&gt;
        $place-&amp;gt;name[0]-&amp;gt;value = &amp;#039;old&amp;#039;;&lt;br /&gt;
        $place-&amp;gt;name[0]-&amp;gt;lang = &amp;#039;deu&amp;#039;;&lt;br /&gt;
        $place-&amp;gt;name[0]-&amp;gt;end-&amp;gt;jd = 2415021;&lt;br /&gt;
        $place-&amp;gt;name[0]-&amp;gt;end-&amp;gt;precision = 2;&lt;br /&gt;
&lt;br /&gt;
        $place-&amp;gt;name[1]-&amp;gt;value = &amp;#039;new&amp;#039;;&lt;br /&gt;
        $place-&amp;gt;name[1]-&amp;gt;lang = &amp;#039;deu&amp;#039;;&lt;br /&gt;
        $place-&amp;gt;name[1]-&amp;gt;begin-&amp;gt;jd = 2415021;&lt;br /&gt;
        $place-&amp;gt;name[1]-&amp;gt;begin-&amp;gt;precision = 2;&lt;br /&gt;
&lt;br /&gt;
        $result = GovTools::getName($place, 2455106, &amp;#039;deu&amp;#039;  );&lt;br /&gt;
        $this-&amp;gt;assertEquals(&amp;#039;new&amp;#039;, $result);&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   /**&lt;br /&gt;
     * There are three names recorded for the object, one without a time (the common name)&lt;br /&gt;
     * and two old names with a year specified.&lt;br /&gt;
     *&lt;br /&gt;
     *         heißt (auf deu) Garding,&lt;br /&gt;
     *  heißt 1438 (auf deu) Gerdingen,&lt;br /&gt;
     *        heißt 1509 (auf deu) Gardingk,&lt;br /&gt;
     *&lt;br /&gt;
     */&lt;br /&gt;
    function testGetName_TwoSingleYears() {&lt;br /&gt;
        $place-&amp;gt;name[0]-&amp;gt;value = &amp;#039;Garding&amp;#039;;&lt;br /&gt;
        $place-&amp;gt;name[0]-&amp;gt;lang = &amp;#039;deu&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
        $place-&amp;gt;name[1]-&amp;gt;value = &amp;#039;Gerdingen&amp;#039;;&lt;br /&gt;
        $place-&amp;gt;name[1]-&amp;gt;lang = &amp;#039;deu&amp;#039;;&lt;br /&gt;
        $place-&amp;gt;name[1]-&amp;gt;year = 1438;&lt;br /&gt;
&lt;br /&gt;
        $place-&amp;gt;name[2]-&amp;gt;value = &amp;#039;Gardingk&amp;#039;;&lt;br /&gt;
        $place-&amp;gt;name[2]-&amp;gt;lang = &amp;#039;deu&amp;#039;;&lt;br /&gt;
        $place-&amp;gt;name[2]-&amp;gt;year = 1590;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
        $result = GovTools::getName($place, 2454287, &amp;#039;deu&amp;#039;);&lt;br /&gt;
        $this-&amp;gt;assertEquals(&amp;#039;Garding&amp;#039;, $result);&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jzedlitz</name></author>
	</entry>
</feed>