assertEquals( "978-2-207-25804-0", $Isbn13, "It should convert to ISBN-13" ); } public function testFormatIsbn13InvalidIsbn() { $this->expectException("Biblys\Isbn\IsbnParsingException"); $this->expectExceptionMessage("Invalid characters in the code"); Isbn::convertToIsbn13("ABC-80-7203-7"); } }