Exemplo n.º 1
0
 public function setUp()
 {
     $this->application = Atrox_Core_Application::getInstance(Mock_MySql_Application::getInstance());
     $this->application->getConnection()->connect();
     $this->application->createBlogTable();
     $this->application->createBlogCommentTable();
 }
Exemplo n.º 2
0
 public function setUp()
 {
     $this->application = Atrox_Core_Application::getInstance(Mock_MySql_Application::getInstance());
     $this->application->getConnection()->connect();
     $this->application->setCache($cache = new Atrox_Core_Caching_Memcached());
     $cache->addServer("localhost");
     $this->application->createBlogTable();
     $this->application->createBlogCommentTable();
 }
Exemplo n.º 3
0
    public function setUp()
    {
        $this->application = Atrox_Core_Application::getInstance(Mock_MySql_Application::getInstance());
        $this->application->getConnection()->connect();
        $this->application->createBlogTable();
        $result = $this->application->getConnection()->query("SELECT * FROM TempBlog");
        $sql = <<<SQL
\t\t\tINSERT INTO TempBlog (Title, Description, DateCreated) VALUES ('First Blog Entry', 'I love blogging', '2008-05-22 17:15:33.460379');
SQL;
        $this->application->getConnection()->query($sql);
        $result = $this->application->getConnection()->query("SELECT * FROM TempBlog");
        $sql = <<<SQL
\t\t\tINSERT INTO TempBlog (Title, Description, DateCreated) VALUES ('I am a bog', 'A test blog for the featured member section.', '2008-05-28 17:51:24.943435');
SQL;
        $this->application->getConnection()->query($sql);
        $result = $this->application->getConnection()->query("SELECT * FROM TempBlog");
        $sql = <<<SQL
\t\t\tINSERT INTO TempBlog (Title, Description, DateCreated) VALUES ('A new blog entry', 'This is a blog description', '2008-06-20 12:44:56.752169');
SQL;
        $this->application->getConnection()->query($sql);
        $result = $this->application->getConnection()->query("SELECT * FROM TempBlog");
    }