Travis config update Removed HHVM script as Laravel no longer support HHVM after releasing 5.3
45 lines
758 B
PHP
45 lines
758 B
PHP
<?php
|
|
|
|
namespace Laravel\Dusk;
|
|
|
|
abstract class Component
|
|
{
|
|
/**
|
|
* Get the root selector associated with this component.
|
|
*
|
|
* @return string
|
|
*/
|
|
abstract public function selector();
|
|
|
|
/**
|
|
* Assert that the current page contains this component.
|
|
*
|
|
* @param \Laravel\Dusk\Browser $browser
|
|
* @return void
|
|
*/
|
|
public function assert(Browser $browser)
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Get the element shortcuts for the page.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function elements()
|
|
{
|
|
return [];
|
|
}
|
|
|
|
/**
|
|
* Allow this class to be used in place of a selector string.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function __toString()
|
|
{
|
|
return '';
|
|
}
|
|
}
|