Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yeray Santana Hualde
syncEnrollments
Commits
bd11b2a8
Commit
bd11b2a8
authored
Jan 10, 2013
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1577 from inverse/develop
Fixed issue with html unit tests
parents
3b8d8bbf
337c2f0a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
html.test.php
laravel/tests/cases/html.test.php
+6
-6
No files found.
laravel/tests/cases/html.test.php
View file @
bd11b2a8
...
@@ -36,9 +36,9 @@ class HtmlTest extends PHPUnit_Framework_TestCase {
...
@@ -36,9 +36,9 @@ class HtmlTest extends PHPUnit_Framework_TestCase {
$html2
=
HTML
::
script
(
'http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js'
);
$html2
=
HTML
::
script
(
'http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js'
);
$html3
=
HTML
::
script
(
'foo.js'
,
array
(
'type'
=>
'text/javascript'
));
$html3
=
HTML
::
script
(
'foo.js'
,
array
(
'type'
=>
'text/javascript'
));
$this
->
assertEquals
(
'<script src="http://localhost/foo.js"></script>'
.
"
\n
"
,
$html1
);
$this
->
assertEquals
(
'<script src="http://localhost/foo.js"></script>'
.
PHP_EOL
,
$html1
);
$this
->
assertEquals
(
'<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>'
.
"
\n
"
,
$html2
);
$this
->
assertEquals
(
'<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>'
.
PHP_EOL
,
$html2
);
$this
->
assertEquals
(
'<script src="http://localhost/foo.js" type="text/javascript"></script>'
.
"
\n
"
,
$html3
);
$this
->
assertEquals
(
'<script src="http://localhost/foo.js" type="text/javascript"></script>'
.
PHP_EOL
,
$html3
);
}
}
/**
/**
...
@@ -52,9 +52,9 @@ class HtmlTest extends PHPUnit_Framework_TestCase {
...
@@ -52,9 +52,9 @@ class HtmlTest extends PHPUnit_Framework_TestCase {
$html2
=
HTML
::
style
(
'http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.1/js/bootstrap.min.js'
);
$html2
=
HTML
::
style
(
'http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.1/js/bootstrap.min.js'
);
$html3
=
HTML
::
style
(
'foo.css'
,
array
(
'media'
=>
'print'
));
$html3
=
HTML
::
style
(
'foo.css'
,
array
(
'media'
=>
'print'
));
$this
->
assertEquals
(
'<link href="http://localhost/foo.css" media="all" type="text/css" rel="stylesheet">'
.
"
\n
"
,
$html1
);
$this
->
assertEquals
(
'<link href="http://localhost/foo.css" media="all" type="text/css" rel="stylesheet">'
.
PHP_EOL
,
$html1
);
$this
->
assertEquals
(
'<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.1/js/bootstrap.min.js" media="all" type="text/css" rel="stylesheet">'
.
"
\n
"
,
$html2
);
$this
->
assertEquals
(
'<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.1/js/bootstrap.min.js" media="all" type="text/css" rel="stylesheet">'
.
PHP_EOL
,
$html2
);
$this
->
assertEquals
(
'<link href="http://localhost/foo.css" media="print" type="text/css" rel="stylesheet">'
.
"
\n
"
,
$html3
);
$this
->
assertEquals
(
'<link href="http://localhost/foo.css" media="print" type="text/css" rel="stylesheet">'
.
PHP_EOL
,
$html3
);
}
}
/**
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment