class Illuminate / Testing / TestView
You are viewing an older version of the documentation. For the latest, please visit master documentation.

TestView

Uses

Properties

protected

$view View

The original view.

Default: null
protected

$rendered string

The rendered view contents.

Default: null

Methods

public

__construct ( View $view ) : void

Create a new test view instance.

Parameters

public

assertSee ( $value , $escape ) : $this

Assert that the given string is contained within the view.

Parameters

  • $value string
  • $escape bool
public

assertSeeInOrder ( array $values , $escape ) : $this

Assert that the given strings are contained in order within the view.

Parameters

  • $values array
  • $escape bool
public

assertSeeText ( $value , $escape ) : $this

Assert that the given string is contained within the view text.

Parameters

  • $value string
  • $escape bool
public

assertSeeTextInOrder ( array $values , $escape ) : $this

Assert that the given strings are contained in order within the view text.

Parameters

  • $values array
  • $escape bool
public

assertDontSee ( $value , $escape ) : $this

Assert that the given string is not contained within the view.

Parameters

  • $value string
  • $escape bool
public

assertDontSeeText ( $value , $escape ) : $this

Assert that the given string is not contained within the view text.

Parameters

  • $value string
  • $escape bool
public

__toString ( ) : string

Get the string contents of the rendered view.