Dispatcher =& new TestModelTaskMockShellDispatcher(); $this->Task =& new MockModelTask($this->Dispatcher); $this->Task->Dispatch =& $this->Dispatcher; } /** * tearDown method * * @return void * @access public */ function tearDown() { ClassRegistry::flush(); } /** * test fixture generation with floats * * @return void **/ function testFixtureGeneration() { $this->Task->useDbConfig = 'test_suite'; $this->Task->setReturnValue('createFile', true); $result = $this->Task->fixture('Datatype'); $this->assertPattern('/float_field\' => 1/', $result); } } ?>