Skip to content

Commit 307dd17

Browse files
committed
Move Transformer to separate file
1 parent ea50577 commit 307dd17

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

tests/DNode/FunctionalTest.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,3 @@ public function transformerShouldRespondCorrectly()
3333
$this->assertSame('FOO', $captured);
3434
}
3535
}
36-
37-
class Transformer
38-
{
39-
public function transform($input, $callback)
40-
{
41-
$callback(strtoupper(preg_replace('/[aeiou]{2,}/', 'oo', $input)));
42-
}
43-
}

tests/DNode/Transformer.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
namespace DNode;
3+
4+
class Transformer
5+
{
6+
public function transform($input, $callback)
7+
{
8+
$callback(strtoupper(preg_replace('/[aeiou]{2,}/', 'oo', $input)));
9+
}
10+
}

0 commit comments

Comments
 (0)