Beispiel #1
0
 public function testToArray()
 {
     $object1 = new SampleModel();
     $object1->Id = 10;
     $object1->setName('Joao');
     $object2 = $object1->toArray();
     $this->assertEquals(10, $object2['Id']);
     $this->assertEquals('Joao', $object2['Name']);
 }