_debug = Configure::read('debug'); $this->Reporter = $this->getMock('CakeHtmlReporter'); } /** * tearDown * * @access public * @return void */ function tearDown() { Configure::write('debug', $this->_debug); unset($this->Case); unset($this->Result); unset($this->Reporter); } /** * testAssertGoodTags * * @access public * @return void */ function testAssertTagsQuotes() { $test = new AssertTagsTestCase('testAssertTagsQuotes'); $result = $test->run(); $this->assertEquals(0, $result->errorCount()); $this->assertTrue($result->wasSuccessful()); $this->assertEquals(0, $result->failureCount()); } /** * testNumericValuesInExpectationForAssertTags * * @access public * @return void */ function testNumericValuesInExpectationForAssertTags() { $test = new AssertTagsTestCase('testNumericValuesInExpectationForAssertTags'); $result = $test->run(); $this->assertEquals(0, $result->errorCount()); $this->assertTrue($result->wasSuccessful()); $this->assertEquals(0, $result->failureCount()); } /** * testBadAssertTags * * @access public * @return void */ function testBadAssertTags() { $test = new AssertTagsTestCase('testBadAssertTags'); $result = $test->run(); $this->assertEquals(0, $result->errorCount()); $this->assertFalse($result->wasSuccessful()); $this->assertEquals(1, $result->failureCount()); $test = new AssertTagsTestCase('testBadAssertTags2'); $result = $test->run(); $this->assertEquals(0, $result->errorCount()); $this->assertFalse($result->wasSuccessful()); $this->assertEquals(1, $result->failureCount()); } /** * testLoadFixtures * * @access public * @return void */ function testLoadFixtures() { $test = new FixturizedTestCase('testFixturePresent'); $result = $test->run(); //$this->Case->fixtures = array('core.post'); //$this->Case->autoFixtures = false; //$this->Case->before('start'); //$this->expectError(); //$this->Case->loadFixtures('Wrong!'); //$this->Case->end(); } /** * testSkipIf * * @return void */ function testSkipIf() { //$this->Case = new SubjectCakeTestCase; //$this->assertTrue($this->Case->skipIf(true)); //$this->assertFalse($this->Case->skipIf(false)); } } ?>