projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Version 1
[yaffs-website]
/
vendor
/
caxy
/
php-htmldiff
/
tests
/
Caxy
/
Tests
/
AbstractTest.php
1
<?php
2
3
namespace Caxy\Tests;
4
5
abstract class AbstractTest extends \PHPUnit_Framework_TestCase
6
{
7
protected function stripExtraWhitespaceAndNewLines($text)
8
{
9
return trim(
10
preg_replace(
11
'/>\s+</',
12
'><',
13
preg_replace('/\s+/S', " ", preg_replace("/[\n\r]/", '', $text))
14
)
15
);
16
}
17
}