Skip to content

Commit

Permalink
Merge pull request #19 from peter279k/improve_assertions
Browse files Browse the repository at this point in the history
Improve PHPUnit assertions
  • Loading branch information
fenric authored Nov 30, 2021
2 parents 610f89c + 532bbba commit 06eb694
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/SluggerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function testSlugify() : void
$output = 'syesh-yeshche-etikh-myagkikh-frantsuzskikh-bulok-da-vypey-chayu';
$slugger = new Slugger();

$this->assertEquals($output, $slugger->slugify($input));
$this->assertSame($output, $slugger->slugify($input));
}

/**
Expand All @@ -73,7 +73,7 @@ public function testSlugifyWithNumbers() : void
$output = '0123456789-abcdefghijklmnopqrstuvwxyz-abcdefghijklmnopqrstuvwxyz';
$slugger = new Slugger();

$this->assertEquals($output, $slugger->slugify($input));
$this->assertSame($output, $slugger->slugify($input));
}

/**
Expand All @@ -85,7 +85,7 @@ public function testSlugifyWithSeparator() : void
$output = 'a_b_v';
$slugger = new Slugger();

$this->assertEquals($output, $slugger->slugify($input, '_'));
$this->assertSame($output, $slugger->slugify($input, '_'));
}

/**
Expand All @@ -97,7 +97,7 @@ public function testSlugifyWithRussianLatinTransliteratorBasicId() : void
$output = 'syesh-yeshche-etikh-myagkikh-frantsuzskikh-bulok-da-vypey-chayu';
$slugger = new Slugger(self::RUSSIAN_LATIN_TRANSLITERATOR_BASIC_ID);

$this->assertEquals($output, $slugger->slugify($input));
$this->assertSame($output, $slugger->slugify($input));
}

/**
Expand All @@ -109,7 +109,7 @@ public function testSlugifyWithCyrillicLatinTransliteratorBasicId() : void
$output = 'ses-ese-etih-magkih-francuzskih-bulok-da-vypej-cau';
$slugger = new Slugger(self::CYRILLIC_LATIN_TRANSLITERATOR_BASIC_ID);

$this->assertEquals($output, $slugger->slugify($input));
$this->assertSame($output, $slugger->slugify($input));
}

/**
Expand All @@ -124,7 +124,7 @@ public function testReplacements() : void
'' => ' euro ',
]);

$this->assertEquals($output, $slugger->slugify($input));
$this->assertSame($output, $slugger->slugify($input));
}

/**
Expand All @@ -136,7 +136,7 @@ public function testPunctuations() : void
$output = 's-t-a-l-k-ye-r';
$slugger = new Slugger(self::RUSSIAN_LATIN_TRANSLITERATOR_BASIC_ID);

$this->assertEquals($output, $slugger->slugify($input));
$this->assertSame($output, $slugger->slugify($input));
}

/**
Expand Down

0 comments on commit 06eb694

Please sign in to comment.