FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
framework/tests/Database/DatabaseMySqlProcessorTest.php at master · JavaDevl/framework · GitHub
JavaDevl
/
framework
Public
forked from
laravel/framework
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
framework
/
tests
/
Database
/
DatabaseMySqlProcessorTest.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
19 lines (16 loc) · 681 Bytes
Breadcrumbs
framework
/
tests
/
Database
/
DatabaseMySqlProcessorTest.php
Copy path
File metadata and controls
19 lines (16 loc) · 681 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
class
DatabaseMySqlProcessorTest
extends
PHPUnit_Framework_TestCase
{
public
function
testProcessColumnListing
()
{
$
processor
=
new
Illuminate
\
Database
\
Query
\
Processors
\
MySqlProcessor
;
$
listing
= [[
'
column_name
'
=>
'
id
'
], [
'
column_name
'
=>
'
name
'
], [
'
column_name
'
=>
'
email
'
]];
$
expected
= [
'
id
'
,
'
name
'
,
'
email
'
];
$
this
->
assertEquals
(
$
expected
,
$
processor
->
processColumnListing
(
$
listing
));
// convert listing to objects to simulate PDO::FETCH_CLASS
foreach
(
$
listing
as
&
$
row
) {
$
row
= (
object
)
$
row
;
}
$
this
->
assertEquals
(
$
expected
,
$
processor
->
processColumnListing
(
$
listing
));
}
}
Back
|
FazBrowse Home
|
New Git URL