Author: Kévin Dunglas (dunglas@gmail.com)
Inheritance: extends PHPUnit_Framework_TestCase
示例#1
0
 public function testDenormalizeNonExistingAttribute()
 {
     $this->assertEquals(new ObjectDummy(), $this->normalizer->denormalize(array('non_existing' => true), __NAMESPACE__ . '\\ObjectDummy'));
 }
示例#2
0
 public function testNormalizeStatic()
 {
     $this->assertEquals(array('foo' => 'K'), $this->normalizer->normalize(new ObjectWithStaticPropertiesAndMethods()));
 }
 public function testNoTraversableSupport()
 {
     $this->assertFalse($this->normalizer->supportsNormalization(new \ArrayObject()));
 }