%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.149 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/11585/cwd/html/ppaobm/vendor/codeception/base/src/Codeception/Lib/Interfaces/ |
Upload File : |
<?php namespace Codeception\Lib\Interfaces; interface Db { /** * Asserts that a row with the given column values exists. * Provide table name and column values. * * ```php * <?php * $I->seeInDatabase('users', ['name' => 'Davert', 'email' => 'davert@mail.com']); * ``` * Fails if no such user found. * * Comparison expressions can be used as well: * * ```php * <?php * $I->seeInDatabase('posts', ['num_comments >=' => '0']); * $I->seeInDatabase('users', ['email like' => 'miles@davis.com']); * ``` * * Supported operators: `<`, `>`, `>=`, `<=`, `!=`, `like`. * * * @param string $table * @param array $criteria */ public function seeInDatabase($table, $criteria = []); /** * Effect is opposite to ->seeInDatabase * * Asserts that there is no record with the given column values in a database. * Provide table name and column values. * * ``` php * <?php * $I->dontSeeInDatabase('users', ['name' => 'Davert', 'email' => 'davert@mail.com']); * ``` * Fails if such user was found. * * Comparison expressions can be used as well: * * ```php * <?php * $I->dontSeeInDatabase('posts', ['num_comments >=' => '0']); * $I->dontSeeInDatabase('users', ['email like' => 'miles%']); * ``` * * Supported operators: `<`, `>`, `>=`, `<=`, `!=`, `like`. * * @param string $table * @param array $criteria */ public function dontSeeInDatabase($table, $criteria = []); /** * Fetches a single column value from a database. * Provide table name, desired column and criteria. * * ``` php * <?php * $mail = $I->grabFromDatabase('users', 'email', array('name' => 'Davert')); * ``` * Comparison expressions can be used as well: * * ```php * <?php * $post = $I->grabFromDatabase('posts', ['num_comments >=' => 100]); * $user = $I->grabFromDatabase('users', ['email like' => 'miles%']); * ``` * * Supported operators: `<`, `>`, `>=`, `<=`, `!=`, `like`. * * @param string $table * @param string $column * @param array $criteria * * @return mixed */ public function grabFromDatabase($table, $column, $criteria = []); }