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

ExpressionTest::testValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 6
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 11
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
    {
12
        $result = new Expression();
13
14
        $this->assertInstanceOf(Expression::class, $result);
15
        $this->assertEquals('', (string) $result);
16
17
        $result = new Expression('* \\ Ç"" \'');
18
19
        $this->assertInstanceOf(Expression::class, $result);
20
        $this->assertEquals('* \\ Ç"" \'', (string) $result);
21
    }
22
}
23