1
exercism fetch php pig-latin

pig-latin_test.php

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<?php
require_once "pig-latin.php";

class PigLatinTest extends PHPUnit\Framework\TestCase
{
    public function testWordBeginningWithP()
    {
        $this->assertEquals("igpay", translate("pig"));
    }

    public function testWordBeginningWithK()
    {
        $this->markTestSkipped();

        $this->assertEquals("oalakay", translate("koala"));
    }

    public function testWordBeginningWithY()
    {
        $this->markTestSkipped();

        $this->assertEquals("ellowyay", translate("yellow"));
    }

    public function testWordBeginningWithX()
    {
        $this->markTestSkipped();

        $this->assertEquals("enonxay", translate("xenon"));
    }

    public function testWordBeginningWithA()
    {
        $this->markTestSkipped();

        $this->assertEquals("appleay", translate("apple"));
    }

    public function testWordBeginningWithE()
    {
        $this->markTestSkipped();

        $this->assertEquals("earay", translate("ear"));
    }

    public function testWordBeginningWithI()
    {
        $this->markTestSkipped();

        $this->assertEquals("iglooay", translate("igloo"));
    }

    public function testWordBeginningWithO()
    {
        $this->markTestSkipped();

        $this->assertEquals("objectay", translate("object"));
    }

    public function testWordBeginningWithU()
    {
        $this->markTestSkipped();

        $this->assertEquals("underay", translate("under"));
    }

    public function testWordBeginningVowelFollowedByQu()
    {
        $this->markTestSkipped();

        $this->assertEquals("equalay", translate("equal"));
    }


    public function testWordBeginningWithQWithoutAFollowingU()
    {
        $this->markTestSkipped();

        $this->assertEquals("atqay", translate("qat"));
    }


    public function testWordBeginningWithCh()
    {
        $this->markTestSkipped();

        $this->assertEquals("airchay", translate("chair"));
    }

    public function testWordBeginningWithQu()
    {
        $this->markTestSkipped();

        $this->assertEquals("eenquay", translate("queen"));
    }

    public function testWordBeginningWithQuAndAPrecedingConsonant()
    {
        $this->markTestSkipped();

        $this->assertEquals("aresquay", translate("square"));
    }

    public function testWordBeginningWithTh()
    {
        $this->markTestSkipped();

        $this->assertEquals("erapythay", translate("therapy"));
    }

    public function testWordBeginningWithThr()
    {
        $this->markTestSkipped();

        $this->assertEquals("ushthray", translate("thrush"));
    }

    public function testWordBeginningWithSch()
    {
        $this->markTestSkipped();

        $this->assertEquals("oolschay", translate("school"));
    }

    public function testWordBeginningWithYt()
    {
        $this->markTestSkipped();

        $this->assertEquals("yttriaay", translate("yttria"));
    }

    public function testWordBeginningWithXr()
    {
        $this->markTestSkipped();

        $this->assertEquals("xrayay", translate("xray"));
    }

    public function testAWholePhrase()
    {
        $this->markTestSkipped();

        $this->assertEquals("ickquay astfay unray", translate("quick fast run"));
    }
}