assertEquals( "3-464-60352-0", $isbn10, "It should convert to ISBN-10" ); } public function testFormatIsbn10WithX() { $isbn10 = Isbn::convertToIsbn10("978-80-7203-717-9"); $this->assertEquals( "80-7203-717-X", $isbn10, "It should convert to ISBN-10 with X as a checksum character" ); } public function testFormatIsbn10InvalidIsbn() { $this->expectException("Biblys\Isbn\IsbnParsingException"); // FIXME: Improve message: Input contains invalid characters "ABC" $this->expectExceptionMessage("Invalid characters in the code"); Isbn::convertToIsbn10("ABC-80-7203-7"); } }