Пример #1
0
 /**
  * @test
  */
 public function messageAfterQueryWithLastQueryEnabledContainsLastQuery()
 {
     Tx_Phpunit_Service_Database::getDatabaseConnection()->exec_SELECTquery('title', 'tx_phpunit_test', '');
     $subject = new Tx_Phpunit_Exception_EmptyQueryResult();
     self::assertContains('SELECT', $subject->getMessage());
 }
 /**
  * @test
  */
 public function messageAfterQueryWithLastQueryEnabledContainsLastQuery()
 {
     $GLOBALS['TYPO3_DB']->exec_SELECTquery('title', 'tx_phpunit_test', '');
     $fixture = new Tx_Phpunit_Exception_EmptyQueryResult();
     $this->assertContains('SELECT', $fixture->getMessage());
 }