Completed
Push — master ( dfdb22...eb88c4 )
by Andreas
08:54 queued 07:05
created

testShouldIncludeAsset()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Doctrine\Bundle\DoctrineBundle\Tests\Dbal;
4
5
use Doctrine\Bundle\DoctrineBundle\Dbal\RegexSchemaAssetFilter;
6
use PHPUnit\Framework\TestCase;
7
8
class RegexSchemaAssetFilterTest extends TestCase
9
{
10
    public function testShouldIncludeAsset()
11
    {
12
        $filter = new RegexSchemaAssetFilter('~^(?!t_)~');
13
14
        $this->assertTrue($filter('do_not_t_ignore_me'));
15
        $this->assertFalse($filter('t_ignore_me'));
16
    }
17
}
18