コード例 #1
0
ファイル: ObjectTest.php プロジェクト: chajr/class-kernel
 /**
  * test object serialization with exception
  */
 public function testSerializeWithException()
 {
     $instance = new Object();
     $instance->set('object', new \ClassKernel\Test\SerializeFail());
     $instance->serialize();
     $this->assertTrue($instance->checkErrors());
     $this->assertEquals($instance->returnObjectError()[0]['message'], 'test exception');
 }