-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
büyük-küçük harf dönüşümleri için test ekle
- Loading branch information
Showing
2 changed files
with
38 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
|
||
use PHPUnit\Framework\TestCase; | ||
|
||
class LetterCaseTests extends TestCase | ||
{ | ||
/** | ||
* @test | ||
*/ | ||
public function kucuk_harfe_cevir() | ||
{ | ||
$this->assertEquals('çılgın koşu', tr('ÇIlgın KoŞu')->kucuk()); | ||
$this->assertEquals('iyelik ekleri', tr('İyelİk eklerİ')->kucuk()); | ||
$this->assertEquals('ılık rüzgarlar', tr('ıLIK RÜZGARLAR')->kucuk()); | ||
$this->assertEquals('izmir\'de ılık ilkbahar akşamı', tr('İzmir\'de Ilık İlkbahar akşamı')->kucuk()); | ||
} | ||
|
||
/** | ||
* @test | ||
*/ | ||
public function buyuk_harfe_cevir() | ||
{ | ||
$this->assertEquals('IĞDIR\'DA ILIK İLKBAHAR AKŞAMI', tr('Iğdır\'da Ilık İlkbahar akşamı')->buyuk()); | ||
} | ||
|
||
/** | ||
* @test | ||
*/ | ||
public function baslik_gibi_yap() | ||
{ | ||
$this->assertEquals('Çılgın Koşu', tr('ÇILgın koŞu')->baslik()); | ||
$this->assertEquals('İyelik Ekleri', tr('iYelik eklerİ')->baslik()); | ||
$this->assertEquals('Ilık Rüzgarlar', tr('ıLIK RÜZGARLAR')->baslik()); | ||
$this->assertEquals('Iğdır\'da Ilık İlkbahar Akşamı', tr('ığdIr\'da ılIk ilkbAhar Akşamı')->baslik()); | ||
} | ||
} |