Skip to content

Commit c3116c9

Browse files
author
Dominik Liebler
authored
Merge pull request DesignPatternsPHP#278 from sbine/master
Various minor fixes
2 parents 0ebf31d + 7b90f08 commit c3116c9

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

Behavioral/Command/Tests/CommandTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ public function testInvocation()
1616

1717
$invoker->setCommand(new HelloCommand($receiver));
1818
$invoker->run();
19-
$this->assertEquals($receiver->getOutput(), 'Hello World');
19+
$this->assertEquals('Hello World', $receiver->getOutput());
2020
}
2121
}

Behavioral/Command/Tests/UndoableCommandTest.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ public function testInvocation()
1717

1818
$invoker->setCommand(new HelloCommand($receiver));
1919
$invoker->run();
20-
$this->assertEquals($receiver->getOutput(), 'Hello World');
20+
$this->assertEquals('Hello World', $receiver->getOutput());
2121

2222
$messageDateCommand = new AddMessageDateCommand($receiver);
2323
$messageDateCommand->execute();
2424

2525
$invoker->run();
26-
$this->assertEquals($receiver->getOutput(), "Hello World\nHello World [".date('Y-m-d').']');
26+
$this->assertEquals("Hello World\nHello World [".date('Y-m-d').']', $receiver->getOutput());
2727

2828
$messageDateCommand->undo();
2929

3030
$invoker->run();
31-
$this->assertEquals($receiver->getOutput(), "Hello World\nHello World [".date('Y-m-d')."]\nHello World");
31+
$this->assertEquals("Hello World\nHello World [".date('Y-m-d')."]\nHello World", $receiver->getOutput());
3232
}
3333
}

Behavioral/Strategy/Tests/StrategyTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function provideIntegers()
2323
];
2424
}
2525

26-
public function providateDates()
26+
public function provideDates()
2727
{
2828
return [
2929
[
@@ -54,7 +54,7 @@ public function testIdComparator($collection, $expected)
5454
}
5555

5656
/**
57-
* @dataProvider providateDates
57+
* @dataProvider provideDates
5858
*
5959
* @param array $collection
6060
* @param array $expected

More/Repository/Tests/RepositoryTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use DesignPatterns\More\Repository\PostRepository;
88
use PHPUnit\Framework\TestCase;
99

10-
class Repository extends TestCase
10+
class RepositoryTest extends TestCase
1111
{
1212
public function testCanPersistAndFindPost()
1313
{

locale/pt_BR/LC_MESSAGES/Behavioral/Iterator/README.po

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ msgid "Purpose"
2020
msgstr ""
2121

2222
#: ../../Behavioral/Iterator/README.rst:7
23-
msgid To make an object iterable and to make it appear like a collection of objects."
23+
msgid "To make an object iterable and to make it appear like a collection of objects."
2424
msgstr ""
2525

2626
#: ../../Behavioral/Iterator/README.rst:11

locale/template/LC_MESSAGES/Creational/FactoryMethod/README.pot

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ msgstr ""
2929
#: ../../Creational/FactoryMethod/README.rst:12
3030
msgid ""
3131
"This pattern is a \"real\" Design Pattern because it achieves the "
32-
"Dependency Inversion Principle" a.k.a the "D" in S.O.L.I.D principles."
32+
"\"Dependency Inversion Principle\" a.k.a the \"D\" in S.O.L.I.D principles."
3333
msgstr ""
3434

3535
#: ../../Creational/FactoryMethod/README.rst:15

locale/template/LC_MESSAGES/Creational/Pool/README.pot

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ msgstr ""
1919
#: ../../Creational/Pool/README.rst:7
2020
msgid ""
2121
"The **object pool pattern** is a software creational design pattern that "
22-
"uses a set of initialized objects kept ready to use – a "pool" – rather "
22+
"uses a set of initialized objects kept ready to use – a \"pool\" – rather "
2323
"than allocating and destroying them on demand. A client of the pool will "
2424
"request an object from the pool and perform operations on the returned "
2525
"object. When the client has finished, it returns the object, which is a "

locale/zh_CN/LC_MESSAGES/Behavioral/Iterator/README.po

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ msgid "Purpose"
2020
msgstr ""
2121

2222
#: ../../Behavioral/Iterator/README.rst:7
23-
msgid To make an object iterable and to make it appear like a collection of objects."
23+
msgid "To make an object iterable and to make it appear like a collection of objects."
2424
msgstr ""
2525

2626
#: ../../Behavioral/Iterator/README.rst:11

0 commit comments

Comments
 (0)