HasInDatabase (Foundation\Testing)
HasInDatabase
class HasInDatabase extends PHPUnit_Framework_Constraint (View source)
Methods
void | __construct(Connection $database, array $data) Create a new constraint instance. | |
bool | matches(string $table) Check if the data is found in the given table. | |
string | failureDescription(string $table) Get the description of the failure. | |
string | toString(int $options) Get a string representation of the object. |
Details
void __construct(Connection $database, array $data)
Create a new constraint instance.
bool matches(string $table)
Check if the data is found in the given table.
string failureDescription(string $table)
Get the description of the failure.
string toString(int $options)
Get a string representation of the object.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.4/Illuminate/Foundation/Testing/Constraints/HasInDatabase.html