SerializationStopperTraitTest.php in Flysystem 8
Same filename and directory in other branches
Namespace
Drupal\Tests\flysystem\UnitFile
tests/src/Unit/SerializationStopperTraitTest.phpView source
<?php
namespace Drupal\Tests\flysystem\Unit;
use Drupal\Tests\UnitTestCase;
use Drupal\flysystem\SerializationStopperTrait;
/**
* @coversDefaultClass \Drupal\flysystem\SerializationStopperTrait
* @group flysystem
*/
class SerializationStopperTraitTest extends UnitTestCase {
/**
* @covers ::__sleep
*
* @expectedException \LogicException
* @expectedExceptionMessage can not be serialized.
*/
public function test() {
$trait = $this
->getMockForTrait(SerializationStopperTrait::class);
serialize($trait);
}
}
Classes
Name | Description |
---|---|
SerializationStopperTraitTest | @coversDefaultClass \Drupal\flysystem\SerializationStopperTrait @group flysystem |