default = new ezcConsoleOutputFormat(); $this->assertEquals( $fake, new ezcConsoleOutputFormats(), 'Default values incorrect for ezcConsoleOutputFormats.' ); } /** * Test on the fly creation with __get() */ public function testGet() { $form = new ezcConsoleOutputFormats(); $fake = new ezcConsoleOutputFormat(); $this->assertEquals( $fake, $form->foobar, 'On the fly creation of ezcConsoleOutputFormat failed.' ); } /** * Test on the fly creation with __set() */ public function testGetManipulate() { $form = new ezcConsoleOutputFormats(); $form->foobar->color = 'blue'; $fake = new ezcConsoleOutputFormat(); $fake->color = 'blue'; $this->assertEquals( $fake, $form->foobar, 'Manipulation of ezcConsoleOutputFormat failed.' ); } } ?>