Skip to content

Commit 06eb694

Browse files
authored
Merge pull request #19 from peter279k/improve_assertions
Improve PHPUnit assertions
2 parents 610f89c + 532bbba commit 06eb694

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/SluggerTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function testSlugify() : void
6161
$output = 'syesh-yeshche-etikh-myagkikh-frantsuzskikh-bulok-da-vypey-chayu';
6262
$slugger = new Slugger();
6363

64-
$this->assertEquals($output, $slugger->slugify($input));
64+
$this->assertSame($output, $slugger->slugify($input));
6565
}
6666

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

76-
$this->assertEquals($output, $slugger->slugify($input));
76+
$this->assertSame($output, $slugger->slugify($input));
7777
}
7878

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

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

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

100-
$this->assertEquals($output, $slugger->slugify($input));
100+
$this->assertSame($output, $slugger->slugify($input));
101101
}
102102

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

112-
$this->assertEquals($output, $slugger->slugify($input));
112+
$this->assertSame($output, $slugger->slugify($input));
113113
}
114114

115115
/**
@@ -124,7 +124,7 @@ public function testReplacements() : void
124124
'' => ' euro ',
125125
]);
126126

127-
$this->assertEquals($output, $slugger->slugify($input));
127+
$this->assertSame($output, $slugger->slugify($input));
128128
}
129129

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

139-
$this->assertEquals($output, $slugger->slugify($input));
139+
$this->assertSame($output, $slugger->slugify($input));
140140
}
141141

142142
/**

0 commit comments

Comments
 (0)