Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

Fixed typos #614

Merged
merged 1 commit into from
Jun 22, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Faker/Provider/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static function imageUrl($width = 640, $height = 480, $category = null, $
$url = "http://lorempixel.com/{$width}/{$height}/";
if ($category) {
if (!in_array($category, static::$categories)) {
throw new \InvalidArgumentException(sprintf('Unkown image category "%s"', $category));
throw new \InvalidArgumentException(sprintf('Unknown image category "%s"', $category));
}
$url .= "{$category}/";
if ($word) {
Expand Down
8 changes: 4 additions & 4 deletions test/Faker/Provider/BarcodeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@ public function testEan8()
{
$code = $this->faker->ean8();
$this->assertRegExp('/^\d{8}$/i', $code);
$codeWitoutChecksum = substr($code, 0, -1);
$codeWithoutChecksum = substr($code, 0, -1);
$checksum = substr($code, -1);
$this->assertEquals(TestableBarcode::eanChecksum($codeWitoutChecksum), $checksum);
$this->assertEquals(TestableBarcode::eanChecksum($codeWithoutChecksum), $checksum);
}

public function testEan13()
{
$code = $this->faker->ean13();
$this->assertRegExp('/^\d{13}$/i', $code);
$codeWitoutChecksum = substr($code, 0, -1);
$codeWithoutChecksum = substr($code, 0, -1);
$checksum = substr($code, -1);
$this->assertEquals(TestableBarcode::eanChecksum($codeWitoutChecksum), $checksum);
$this->assertEquals(TestableBarcode::eanChecksum($codeWithoutChecksum), $checksum);
}
}

Expand Down