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

Commit

Permalink
Merge pull request #614 from pborreli/typos
Browse files Browse the repository at this point in the history
Fixed typos
  • Loading branch information
fzaninotto committed Jun 22, 2015
2 parents 16b9b99 + e0bc128 commit 4ff9893
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
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

0 comments on commit 4ff9893

Please sign in to comment.