public function SerializationStopperTraitTest::test in Flysystem 3.0.x
Same name and namespace in other branches
- 8 tests/src/Unit/SerializationStopperTraitTest.php \Drupal\Tests\flysystem\Unit\SerializationStopperTraitTest::test()
- 3.x tests/src/Unit/SerializationStopperTraitTest.php \Drupal\Tests\flysystem\Unit\SerializationStopperTraitTest::test()
- 2.0.x tests/src/Unit/SerializationStopperTraitTest.php \Drupal\Tests\flysystem\Unit\SerializationStopperTraitTest::test()
@covers ::__sleep
File
- tests/
src/ Unit/ SerializationStopperTraitTest.php, line 18
Class
- SerializationStopperTraitTest
- @coversDefaultClass \Drupal\flysystem\SerializationStopperTrait @group flysystem
Namespace
Drupal\Tests\flysystem\UnitCode
public function test() {
$this
->expectException(LogicException::class);
$this
->expectExceptionMessage('can not be serialized.');
$trait = $this
->getMockForTrait(SerializationStopperTrait::class);
serialize($trait);
}