Code-TidyAll
view release on metacpan or search on metacpan
php/PHP_CodeSniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.5.inc view on Meta::CPAN
 <?php
// This should throw an error - unicode space before open tag and after close tag.
?>Â
Â
php/PHP_CodeSniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.5.inc.fixed view on Meta::CPAN
<?php
// This should throw an error - unicode space before open tag and after close tag.
?>
t/lib/TestFor/Code/TidyAll/Plugin/JSBeautify.pm view on Meta::CPAN
expect_tidy => 'sp.toggleResult = function(id)\n{\n foo(id)\n}',
);
}
sub test_utf8 : Tests {
my $self = shift;
return unless $self->require_executable('node');
return unless $self->require_executable('js-beautify');
my $contents = encode( 'UTF-8', qq{var unicode = "Unicode - \x{263a}";} );
my $expect = encode( 'UTF-8', qq{var unicode = "Unicode - \x{263a}";} );
local $SIG{__WARN__} = sub { Carp::cluck(@_) };
is_deeply(
[
warnings {
$self->tidyall(
source => $contents,
expect_tidy => $expect,
desc => 'tidy UTF-8 from string',
);
( run in 0.505 second using v1.01-cache-2.11-cpan-88abd93f124 )