示例#1
0
文件: CCMail.php 项目: clancats/core
 /**
  * CCMail::is_plaintext tests
  */
 public function test_is_plaintext()
 {
     $mail = CCMail::create();
     $mail->to('*****@*****.**');
     $mail->is_plaintext();
     $mail->send();
     $mail_data = CCArr::last(Mail\Transporter_Array::$store);
     $this->assertEquals(true, $mail_data['is_plaintext']);
 }
示例#2
0
文件: Handler.php 项目: clancats/core
 /**
  * Get the query log 
  * 
  * @return array
  */
 public static function last_query()
 {
     return \CCArr::last(static::$_query_log);
 }
示例#3
0
文件: CCArr.php 项目: clancats/core
 /**
  * test array last
  */
 public function testArrayLast()
 {
     $original_array = $this->test_array;
     $this->assertEquals(array('number' => 13, 'zero' => 0, 'null' => null), CCArr::last($this->test_array));
     $this->assertEquals($original_array, $this->test_array);
 }
示例#4
0
文件: Select.php 项目: clancats/core
 /**
  * Test Query_Select::last
  */
 public function test_last()
 {
     $result = DB::select('people')->last();
     $person = CCArr::last(static::people_provider());
     $person = $person[0];
     foreach ($person as $key => $value) {
         $this->assertEquals($value, $result->{$key});
     }
 }