expectNotToPerformAssertions("It should not throw"); } public function testUnparsableIsbn() { $this->expectException("Biblys\Isbn\IsbnParsingException"); $this->expectExceptionMessage("Invalid characters in the code"); Isbn::validateAsEan13("9782SPI258040"); } public function testIsbnWithHyphens() { $this->expectException("Biblys\Isbn\IsbnValidationException"); $this->expectExceptionMessage("978-2-207-25804-0 is not a valid EAN-13. Expected 9782207258040."); Isbn::validateAsEan13("978-2-207-25804-0"); } public function testIsbnWithIncorrectCheckum() { $this->expectException("Biblys\Isbn\IsbnValidationException"); $this->expectExceptionMessage("9782207258049 is not a valid EAN-13. Expected 9782207258040."); Isbn::validateAsEan13("9782207258049"); } }