Application Test Results

Test 1: Retrieve All Books

SUCCESS: Retrieved books:

Array
(
    [0] => Array
        (
            [id] => 1
            [titre] => One Piece
            [auteur] => Eiichiro Oda
            [categorie] => Shonen
        )

    [1] => Array
        (
            [id] => 2
            [titre] => Naruto
            [auteur] => Masashi Kishimoto
            [categorie] => Seinen
        )

    [2] => Array
        (
            [id] => 3
            [titre] => Attack on Titan
            [auteur] => Hajime Isayama
            [categorie] => Seinen
        )

    [3] => Array
        (
            [id] => 4
            [titre] => Tokyo Ghoul
            [auteur] => Sui Ishida
            [categorie] => Seinen
        )

    [4] => Array
        (
            [id] => 5
            [titre] => My Hero Academia
            [auteur] => Kohei Horikoshi
            [categorie] => Seinen
        )

    [5] => Array
        (
            [id] => 6
            [titre] => Demon Slayer
            [auteur] => Koyoharu Gotouge
            [categorie] => Seinen
        )

    [6] => Array
        (
            [id] => 7
            [titre] => Sailor Moon
            [auteur] => Naoko Takeuchi
            [categorie] => Isekai
        )

    [7] => Array
        (
            [id] => 8
            [titre] => Re:Zero
            [auteur] => Tappei Nagatsuki
            [categorie] => Action
        )

    [8] => Array
        (
            [id] => 9
            [titre] => Fullmetal Alchemist
            [auteur] => Hiromu Arakawa
            [categorie] => Fantasy
        )

    [9] => Array
        (
            [id] => 10
            [titre] => Hunter x Hunter
            [auteur] => Yoshihiro Togashi
            [categorie] => Seinen
        )

    [10] => Array
        (
            [id] => 11
            [titre] => Nisekoi Yo
            [auteur] => Naoshi Komi
            [categorie] => Sports
        )

)

Test 2: Ensure test user exists

SUCCESS: User 'testuser' exists (User ID: 12).

Test 3: Borrow a Book

SUCCESS: Book 1 borrowed successfully.

Test 4: Retrieve Borrowed Books

SUCCESS: Borrowed books:

Array
(
    [0] => Array
        (
            [id] => 1
            [titre] => One Piece
            [auteur] => Eiichiro Oda
            [categorie] => Shonen
            [return_date] => 2026-06-17
        )

)

Test 5: Return Book

SUCCESS: Book 1 returned successfully.

Application tests completed.