Skip to content

MonocleTest

Test for EPUB methods used by Monocle in COPS

Source: https://github.com/mikespub-org/seblucas

  • Full name: \MonocleTest
  • Parent class: TestCase

Constants

Constant Visibility Type Value
TEST_EPUB public DIR . '/data/eng.epub'
TEST_EPUB_COPY public DIR . '/data/eng.copy.epub'
TEST_CONTENTS public DIR . '/data/eng.contents.json'
TEST_COMPONENTS public DIR . '/data/eng.components.json'
TEST_EPUB3 public DIR . '/data/eng3.epub'

Properties

book

private static \SebLucas\EPubMeta\EPub $book
  • This property is static.

Methods

setUpBeforeClass

public static setUpBeforeClass(): void
  • This method is static.

tearDownAfterClass

public static tearDownAfterClass(): void
  • This method is static.

testComponents

public testComponents(): void

testContents

public testContents(): void

testComponent

Summary of testComponent

public testComponent(string $component = 'text/titlepage.xhtml'): void

Parameters:

Parameter Type Description
$component string

testGetComponentName

Summary of testGetComponentName

public testGetComponentName(string $component = 'text/titlepage.xhtml', string $element = '../images/cover.jpg'): void

Parameters:

Parameter Type Description
$component string
$element string

testComponentContentType

Summary of testComponentContentType

public testComponentContentType(string $component = 'text/titlepage.xhtml'): void

Parameters:

Parameter Type Description
$component string

testContentsEpub3

public testContentsEpub3(): void

encodeItem

Summary of encodeItem

protected encodeItem(array $item, array $encoder): array

Parameters:

Parameter Type Description
$item array
$encoder array

provideEncodeReplace

Summary of provideEncodeReplace

public provideEncodeReplace(): array

provideDecodeReplace

Summary of provideDecodeReplace

public provideDecodeReplace(): array


Automatically generated on 2025-03-18