getInvalidIsbn10 example

public static function getValidIsbn()
    {
        return array_merge(
            self::getValidIsbn10(),
            self::getValidIsbn13()
        );
    }

    public static function getInvalidIsbn()
    {
        return array_merge(
            self::getInvalidIsbn10(),
            self::getInvalidIsbn13()
        );
    }

    public function testNullIsValid()
    {
        $constraint = new Isbn(true);

        $this->validator->validate(null, $constraint);

        $this->assertNoViolation();
    }
Home | Imprint | This part of the site doesn't use cookies.