Image
class Image
Methods
Generate an image.
Assert that an image was not generated matching a given truth test.
Assert that no images were generated.
Assert that a queued image generation was recorded matching a given truth test.
Assert that a queued image generation was not recorded matching a given truth test.
Assert that no queued image generations were recorded.
Determine if image generation is faked.
Details
at line 20
static PendingImageGeneration
of(string $prompt)
Generate an image.
at line 30
static FakeImageGateway
fake(Closure|array $responses = [])
Fake image generation.
The fake gateway is shared across requests in the worker.
at line 39
static void
assertGenerated(Closure $callback)
Assert that an image was generated matching a given truth test.
at line 47
static void
assertNotGenerated(Closure $callback)
Assert that an image was not generated matching a given truth test.
at line 55
static void
assertNothingGenerated()
Assert that no images were generated.
at line 63
static void
assertQueued(Closure $callback)
Assert that a queued image generation was recorded matching a given truth test.
at line 71
static void
assertNotQueued(Closure $callback)
Assert that a queued image generation was not recorded matching a given truth test.
at line 79
static void
assertNothingQueued()
Assert that no queued image generations were recorded.
at line 87
static bool
isFaked()
Determine if image generation is faked.