SerializationStopperTraitTest.php in Flysystem 2.0.x
File
tests/src/Unit/SerializationStopperTraitTest.php
View source
<?php
namespace Drupal\Tests\flysystem\Unit;
use Drupal\Tests\UnitTestCase;
use Drupal\flysystem\SerializationStopperTrait;
use LogicException;
class SerializationStopperTraitTest extends UnitTestCase {
public function test() {
$this
->expectException(LogicException::class);
$this
->expectExceptionMessage('can not be serialized.');
$trait = $this
->getMockForTrait(SerializationStopperTrait::class);
serialize($trait);
}
}