Skip to content

Commit 6b05288

Browse files
committed
fixed UseParser boolean expects
1 parent 949f09b commit 6b05288

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

specs/parser/UseParser.spec.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
'Node',
4949
'Uses'
5050
]);
51-
expect($fqcn->isArray())->to->equal(true);
51+
expect($fqcn->isArray())->to->be->true;
5252
});
5353
it('works with empty string', function(){
5454
$fqcn = $this->useParser->parseFQCN('');
@@ -65,11 +65,11 @@
6565
});
6666
it('creates non-array fqcn from ' . $scalar, function() use ($scalar){
6767
$fqcn = $this->useParser->parseFQCN($scalar);
68-
expect($fqcn->isArray())->to->equal(false);
68+
expect($fqcn->isArray())->to->be->false;
6969
});
7070
it('creates scalar fqcn from ' . $scalar, function() use ($scalar){
7171
$fqcn = $this->useParser->parseFQCN($scalar);
72-
expect($fqcn->isScalar())->to->equal(true);
72+
expect($fqcn->isScalar())->to->be->true;
7373
});
7474
}
7575
});
@@ -89,7 +89,7 @@
8989
});
9090
it('works with scalars', function(){
9191
$fqcn = $this->useParser->parseType('string');
92-
expect($fqcn->isScalar())->to->equal(true);
92+
expect($fqcn->isScalar())->to->be->true;
9393
});
9494
it('works with absolute names', function(){
9595
$fqcn = $this->useParser->parseType('\Entity\Project');

0 commit comments

Comments
 (0)