Akihito Nakano be14e02875 [PHP] Cleanup test (#7673)
* Regenerate PetApiTest, OrderTest

The same test code as deleted is in the 'tests' directory.

* Move test code 'test' -> 'tests', and Regenerate test/Model/PetTest.php

* Regenerate 'test' directory

rm -rf samples/client/petstore/php/SwaggerClient-php/test && bin/php-petstore.sh
2018-02-22 17:31:18 +08:00

19 lines
362 B
PHP

<?php
namespace Swagger\Client;
use Swagger\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");
}
}