diff --git a/src/Faker/Provider/Image.php b/src/Faker/Provider/Image.php index 40aeac5389..0def1371bc 100644 --- a/src/Faker/Provider/Image.php +++ b/src/Faker/Provider/Image.php @@ -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) { diff --git a/test/Faker/Provider/BarcodeTest.php b/test/Faker/Provider/BarcodeTest.php index a7ee6d98b5..1373b2b5bd 100644 --- a/test/Faker/Provider/BarcodeTest.php +++ b/test/Faker/Provider/BarcodeTest.php @@ -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); } }