12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <?php
- namespace Faker\Test\Provider\ka_GE;
- use PHPUnit\Framework\TestCase;
- class TextTest extends TestCase
- {
- private $textClass;
- public function setUp()
- {
- $this->textClass = new \ReflectionClass('Faker\Provider\el_GR\Text');
- }
- protected function getMethod($name) {
- $method = $this->textClass->getMethod($name);
- $method->setAccessible(true);
- return $method;
- }
- /** @test */
- function testItShouldAppendEndPunctToTheEndOfString()
- {
- $this->assertSame(
- 'ჭეშმარიტია. ჩვენც ისე.',
- $this->getMethod('appendEnd')->invokeArgs(null, array('ჭეშმარიტია. ჩვენც ისე '))
- );
- $this->assertSame(
- 'ჭეშმარიტია. ჩვენც ისე.',
- $this->getMethod('appendEnd')->invokeArgs(null, array('ჭეშმარიტია. ჩვენც ისე— '))
- );
- $this->assertSame(
- 'ჭეშმარიტია. ჩვენც ისე.',
- $this->getMethod('appendEnd')->invokeArgs(null, array('ჭეშმარიტია. ჩვენც ისე, '))
- );
- $this->assertSame(
- 'ჭეშმარიტია. ჩვენც ისე!.',
- $this->getMethod('appendEnd')->invokeArgs(null, array('ჭეშმარიტია. ჩვენც ისე! '))
- );
- $this->assertSame(
- 'ჭეშმარიტია. ჩვენც ისე.',
- $this->getMethod('appendEnd')->invokeArgs(null, array('ჭეშმარიტია. ჩვენც ისე; '))
- );
- $this->assertSame(
- 'ჭეშმარიტია. ჩვენც ისე.',
- $this->getMethod('appendEnd')->invokeArgs(null, array('ჭეშმარიტია. ჩვენც ისე: '))
- );
- }
- }
|