public function testShouldSerializeNullBinary() { $user = new UnitTest(array('blob_value' => null)); $xml = $user->toXml(); $this->assertContains('<blob-value encoding="base64" type="binary" nil="true"></blob-value>', $xml); }