<commit_before><?php
declare(strict_types = 1);

namespace Tests\Innmind\TimeContinuum\Timezone\Earth\Pacific;

use Innmind\TimeContinuum\{
    Timezone\Earth\Pacific\Tongatapu,
    TimezoneInterface
};
use PHPUnit\Framework\TestCase;

class TongatapuTest extends TestCase
{
    public function testInterface()
    {
        $zone = new Tongatapu;

        $this->assertInstanceOf(TimezoneInterface::class, $zone);
        $this->assertSame(13, $zone->hours());
        $this->assertSame(0, $zone->minutes());
        $this->assertSame('+13:00', (string) $zone);
        $this->assertFalse($zone->daylightSavingTimeApplied());
    }
}<commit_msg>Pacific/Tongatapu re-use DST since 2016<commit_after><?php
declare(strict_types = 1);

namespace Tests\Innmind\TimeContinuum\Timezone\Earth\Pacific;

use Innmind\TimeContinuum\{
    Timezone\Earth\Pacific\Tongatapu,
    TimezoneInterface
};
use PHPUnit\Framework\TestCase;

class TongatapuTest extends TestCase
{
    public function testInterface()
    {
        $zone = new Tongatapu;

        $this->assertInstanceOf(TimezoneInterface::class, $zone);

        if ($zone->daylightSavingTimeApplied()) {
            $this->assertSame(14, $zone->hours());
            $this->assertSame(0, $zone->minutes());
            $this->assertSame('+14:00', (string) $zone);
        } else {
            $this->assertSame(13, $zone->hours());
            $this->assertSame(0, $zone->minutes());
            $this->assertSame('+13:00', (string) $zone);
        }
    }
}
{'fraction_non_alphanumeric': 0.1529255319148936, 'fraction_numerical': 0.01795212765957447, 'mean_word_length': 3.3371757925072045, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5928374', 'n_tokens_mistral': 518, 'n_tokens_neox': 474, 'n_words': 75}