William Cheng e5be838fa8
Update PHP client default value (#417)
* update php default value

* update php samples with oas3
2018-05-11 15:28:09 +08:00

19 lines
362 B
PHP

<?php
namespace OpenAPI\Client;
use OpenAPI\Client\Model\Pet;
class PetTest extends \PHPUnit_Framework_TestCase
{
/**
* test empty object serialization
*/
public function testEmptyPetSerialization()
{
$new_pet = new Pet;
// the empty object should be serialised to {}
$this->assertSame("{}", "$new_pet");
}
}