You are here

public function SerializationStopperTraitTest::test in Flysystem 8

Same name and namespace in other branches
  1. 3.x tests/src/Unit/SerializationStopperTraitTest.php \Drupal\Tests\flysystem\Unit\SerializationStopperTraitTest::test()
  2. 2.0.x tests/src/Unit/SerializationStopperTraitTest.php \Drupal\Tests\flysystem\Unit\SerializationStopperTraitTest::test()
  3. 3.0.x tests/src/Unit/SerializationStopperTraitTest.php \Drupal\Tests\flysystem\Unit\SerializationStopperTraitTest::test()

@covers ::__sleep

@expectedException \LogicException @expectedExceptionMessage can not be serialized.

File

tests/src/Unit/SerializationStopperTraitTest.php, line 20

Class

SerializationStopperTraitTest
@coversDefaultClass \Drupal\flysystem\SerializationStopperTrait @group flysystem

Namespace

Drupal\Tests\flysystem\Unit

Code

public function test() {
  $trait = $this
    ->getMockForTrait(SerializationStopperTrait::class);
  serialize($trait);
}