for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SubjectivePHPTest\Spl\Traits;
/**
* @coversDefaultClass SubjectivePHP\Spl\Traits\SerializationDisabledTrait
*/
class SerializationDisabledTraitTest extends \PHPUnit\Framework\TestCase
{
* Verify basic behavior of __sleep().
*
* @test
* @covers ::__sleep
* @expectedException \BadMethodCallException
* @return void
public function magicClone()
$object = $this->getObjectForTrait('\\SubjectivePHP\\Spl\\Traits\\SerializationDisabledTrait');
serialize($object);
}