for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the jquery-datatables-bundle package.
*
* (c) 2018 WEBEWEB
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace WBW\Bundle\JQuery\DataTablesBundle\Tests\Model;
use WBW\Bundle\JQuery\DataTablesBundle\Model\DataTablesSearch;
use WBW\Bundle\JQuery\DataTablesBundle\Tests\AbstractTestCase;
/**
* DataTables search test.
* @author webeweb <https://github.com/webeweb>
* @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Model
class DataTablesSearchTest extends AbstractTestCase {
* Test setRegex()
* @return void
public function testSetRegex(): void {
$obj = new DataTablesSearch();
$obj->setRegex(true);
$this->assertTrue($obj->getRegex());
}
* Test setValue()
public function testSetValue(): void {
$obj->setValue("value");
$this->assertEquals("value", $obj->getValue());
* Test __construct()
public function test__construct(): void {
$this->assertFalse($obj->getRegex());
$this->assertEquals("", $obj->getValue());