Beispiel #1
0
 public function test_stash_with_same_id_as_protected_property()
 {
     $zit = Zit::make();
     $myObject = new \stdClass();
     $myObject->id = 'testServices';
     $zit->stash('services', $myObject);
     $this->assertTrue($zit->services instanceof \stdClass);
     $this->assertSame('testServices', $zit->services->id);
 }