/** * 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']); }
/** * Get the query log * * @return array */ public static function last_query() { return \CCArr::last(static::$_query_log); }
/** * 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); }
/** * 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}); } }