From edf2251aca60a970e822079d23933e5b70b26571 Mon Sep 17 00:00:00 2001 From: ctrlaltca <> Date: Wed, 2 Jan 2013 14:42:24 +0000 Subject: backported all related changes up to 3229 to branch/3.2 --- .../Data/Analysis/TDbStatementAnalysisTest.php | 62 ---------------------- 1 file changed, 62 deletions(-) delete mode 100644 tests/unit/Testing/Data/Analysis/TDbStatementAnalysisTest.php (limited to 'tests/unit/Testing/Data/Analysis/TDbStatementAnalysisTest.php') diff --git a/tests/unit/Testing/Data/Analysis/TDbStatementAnalysisTest.php b/tests/unit/Testing/Data/Analysis/TDbStatementAnalysisTest.php deleted file mode 100644 index 70437816..00000000 --- a/tests/unit/Testing/Data/Analysis/TDbStatementAnalysisTest.php +++ /dev/null @@ -1,62 +0,0 @@ -analyser = new TDbStatementAnalysis(); - } - - public function tearDown() - { - $this->analyser = null; - } - - public function testStaticClassificationAnalysis() - { - $parameter = new TDbStatementAnalysisParameter(); - self::assertEquals(TDbStatementClassification::UNKNOWN, TDbStatementAnalysis::doClassificationAnalysis($parameter)); - - $parameter = new TDbStatementAnalysisParameter('SELECT 1'); - self::assertEquals(TDbStatementClassification::UNKNOWN, TDbStatementAnalysis::doClassificationAnalysis($parameter)); - - $parameter = new TDbStatementAnalysisParameter('SELECT 1', TDbStatementClassification::SQL); - self::assertEquals(TDbStatementClassification::SQL, TDbStatementAnalysis::doClassificationAnalysis($parameter)); - } - - public function testDriverName() - { - self::assertNull($this->analyser->getDriverName()); - - $this->analyser->setDriverName('mysql'); - self::assertEquals('mysql', $this->analyser->getDriverName()); - - $this->analyser->setDriverName('mssql'); - self::assertEquals('mssql', $this->analyser->getDriverName()); - - $this->analyser->setDriverName(null); - self::assertNull($this->analyser->getDriverName()); - } - - public function testClassificationAnalysis() - { - $parameter = new TDbStatementAnalysisParameter(); - self::assertEquals(TDbStatementClassification::UNKNOWN, $this->analyser->getClassificationAnalysis($parameter)); - - $parameter = new TDbStatementAnalysisParameter('SELECT 1'); - self::assertEquals(TDbStatementClassification::UNKNOWN, $this->analyser->getClassificationAnalysis($parameter)); - - $parameter = new TDbStatementAnalysisParameter('SELECT 1', TDbStatementClassification::SQL); - self::assertEquals(TDbStatementClassification::SQL, $this->analyser->getClassificationAnalysis($parameter)); - } - -} -?> \ No newline at end of file -- cgit v1.2.3