示例#1
0
 public function testToCleanArray()
 {
     $dataWrapper = new TestDataWrapper();
     $this->assertSame(array(), $dataWrapper->toCleanArray());
 }
示例#2
0
 public function testRecursiveToArray()
 {
     $dataWrapper = new TestDataWrapper(['prop1' => 1, 'prop2' => new TestDataWrapper2(['prop_one' => 1])]);
     $this->assertSame(['prop1' => 1, 'prop2' => ['prop_one' => 1], 'prop3' => null, 'prop4' => null, 'prop5' => null, 'prop6' => null, 'prop7' => null, 'prop8' => null, 'prop9' => null, 'prop10' => null], $dataWrapper->toArray());
 }