Files
faveo/vendor/laravel/dusk/src/Component.php
Manish Verma 1ac0f42a58 Laravel 5.6 updates
Travis config update

Removed HHVM script as Laravel no longer support HHVM after releasing 5.3
2018-08-07 10:17:09 +05:30

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 '';
}
}