Passed
Pull Request — master (#197)
by
unknown
01:23
created

ExpressionTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 12
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testValue() 0 10 1
1
<?php
2
namespace Foolz\SphinxQL\Tests;
3
4
use Foolz\SphinxQL\Expression;
5
6
use PHPUnit\Framework\TestCase;
7
8
class ExpressionTest extends TestCase{
9
10
	public function testValue(): void{
11
		$result = new Expression();
12
13
		$this->assertInstanceOf( Expression::class,$result);
14
		$this->assertEquals('',(string) $result);
15
16
		$result = new Expression('* \\ Ç"" \'');
17
18
		$this->assertInstanceOf(Expression::class,$result);
19
		$this->assertEquals('* \\ Ç"" \'',(string) $result);
20
	}
21
22
}