TestComponent
class TestComponent implements Stringable (View source)
Traits
Properties
static protected array | $macros | The registered string macros. |
from Macroable |
Component | $component | The original component. |
|
protected string | $rendered | The rendered component contents. |
Methods
Mix another object into the class.
Dynamically handle calls to the class.
Dynamically call methods on the underlying component.
Assert that the given string is contained within the rendered component.
Assert that the given strings are contained in order within the rendered component.
Assert that the given string is contained within the rendered component text.
Assert that the given strings are contained in order within the rendered component text.
Assert that the given string is not contained within the rendered component.
Assert that the given string is not contained within the rendered component text.
Get the string contents of the rendered component.
Dynamically access properties on the underlying component.
Details
mixed
__call(string $method, array $parameters)
Dynamically call methods on the underlying component.
$this
assertSee(string $value, bool $escape = true)
Assert that the given string is contained within the rendered component.
$this
assertSeeInOrder(array $values, bool $escape = true)
Assert that the given strings are contained in order within the rendered component.
$this
assertSeeText(string $value, bool $escape = true)
Assert that the given string is contained within the rendered component text.
$this
assertSeeTextInOrder(array $values, bool $escape = true)
Assert that the given strings are contained in order within the rendered component text.
$this
assertDontSee(string $value, bool $escape = true)
Assert that the given string is not contained within the rendered component.
$this
assertDontSeeText(string $value, bool $escape = true)
Assert that the given string is not contained within the rendered component text.