static::
assertSame('de-DE',
$result_de_DE[0
]->
getIso());
static::
assertSame([],
$result_empty);
static::
assertSame([],
$result_empty_two);
} public function testGetBaseFileByIsoExpectException(): void
{ $collection =
$this->
getCollection();
$this->
expectException(InvalidSnippetFileException::
class);
$collection->
getBaseFileByIso('de-AT'
);
} public function testGetBaseFileByIso(): void
{ $collection =
$this->
getCollection();
$result_en_GB =
$collection->
getBaseFileByIso('en-GB'
);
$result_de_DE =
$collection->
getBaseFileByIso('de-DE'
);
static::
assertSame('en-GB',
$result_en_GB->
getIso());
static::
assertTrue($result_en_GB->
isBase());