Skip to content

Commit

Permalink
- 3.0
Browse files Browse the repository at this point in the history
- Updated tests
  • Loading branch information
Machy8 committed Sep 30, 2017
1 parent f53da5e commit 04f8f8a
Show file tree
Hide file tree
Showing 11 changed files with 28 additions and 31 deletions.
5 changes: 4 additions & 1 deletion tests/ElementsTestCase.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ namespace Macdom\Tests;
require_once 'bootstrap.php';


/**
* @testCase
*/
final class ElementsTestCase extends AbstractTestCase
{

Expand Down Expand Up @@ -123,4 +126,4 @@ final class ElementsTestCase extends AbstractTestCase

}

run(new ElementsTestCase());
(new ElementsTestCase())->run();
4 changes: 2 additions & 2 deletions tests/ElementsTests/Actual/elementsContentType.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
div
input
xml
category
channel
description
comments
4 changes: 2 additions & 2 deletions tests/ElementsTests/Expected/elementsContentType.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
divinput
<?xml?>
<category></category>
<channel></channel>
<description></description>
<comments></comments>
5 changes: 4 additions & 1 deletion tests/FormattingTestCase.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ namespace Macdom\Tests;
require_once 'bootstrap.php';


/**
* @testCase
*/
final class FormattingTestCase extends AbstractTestCase
{

Expand Down Expand Up @@ -56,4 +59,4 @@ final class FormattingTestCase extends AbstractTestCase

}

run(new FormattingTestCase());
(new FormattingTestCase())->run();
6 changes: 0 additions & 6 deletions tests/FormattingTests/Actual/inlineMode.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@

<script> var a = 123; a ++; alert(a); </script>

skipthisarea var a = 123; a ++; alert(a);

<skipthisarea> var a = 123; a ++; alert(a); </skipthisarea>

textarea var a = 123; a ++; alert(a);

macdom-off var a = 123; a ++; alert(a);

<macdom-off> var a = 123; a ++; alert(a); </macdom-off>
10 changes: 2 additions & 8 deletions tests/FormattingTests/Expected/inlineMode.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,9 @@
var a = 123; a ++; alert(a);
</script>
<script>
var a = 123; a ++; alert(a);
var a = 123; a ++; alert(a);
</script>
<skipthisarea>
var a = 123; a ++; alert(a);
</skipthisarea>
<skipthisarea>
var a = 123; a ++; alert(a);
</skipthisarea>
<textarea>
var a = 123; a ++; alert(a);
</textarea>
var a = 123; a ++; alert(a); var a = 123; a ++; alert(a);
var a = 123; a ++; alert(a);
5 changes: 4 additions & 1 deletion tests/MacrosTestCase.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ namespace Macdom\Tests;
require_once 'bootstrap.php';


/**
* @testCase
*/
final class MacrosTestCase extends AbstractTestCase
{

Expand Down Expand Up @@ -97,4 +100,4 @@ final class MacrosTestCase extends AbstractTestCase

}

run(new MacrosTestCase());
(new MacrosTestCase())->run();
2 changes: 1 addition & 1 deletion tests/MacrosTests/Expected/macrosOverwriting.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Selected charset is UTF-8.
<script>
alert('Hello World!');
alert('Hello World!');
</script>
6 changes: 4 additions & 2 deletions tests/ReplicatorTestCase.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ namespace Macdom\Tests;

require_once 'bootstrap.php';


/**
* @testCase
*/
final class ReplicatorTestCase extends AbstractTestCase
{

Expand Down Expand Up @@ -49,4 +51,4 @@ final class ReplicatorTestCase extends AbstractTestCase

}

run(new ReplicatorTestCase());
(new ReplicatorTestCase())->run();
5 changes: 4 additions & 1 deletion tests/TextTestCase.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ namespace Macdom\Tests;
require_once 'bootstrap.php';


/**
* @testCase
*/
final class TextTestCase extends AbstractTestCase
{

Expand Down Expand Up @@ -62,4 +65,4 @@ final class TextTestCase extends AbstractTestCase

}

run(new TextTestCase());
(new TextTestCase())->run();
7 changes: 1 addition & 6 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
<?php

require __DIR__ . '/../vendor/autoload.php';
require_once __DIR__ . '/../vendor/autoload.php';

Tester\Environment::setup();
date_default_timezone_set('Europe/Prague');

function run(Tester\TestCase $testCase)
{
$testCase->run();
}

0 comments on commit 04f8f8a

Please sign in to comment.