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

ExpressionTest::testValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 6
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 10
rs 10
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
}