This block can probably be reduced to
```php
$this->assertEquals(
  $test !== 'txt',
  $colorInfo['alpha'] === 127,
  'Failed asserting that only previews for text files are transparent.'
);
```