Skip to content

Commit

Permalink
fix phpunit syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeynezbritskiy committed Dec 1, 2019
1 parent c58e3a4 commit c092bbe
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 14 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ composer.phar
/vendor/
/build/
.idea
phpunit.xml
phpunit.xml
.phpunit.result.cache
9 changes: 5 additions & 4 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/5.7/phpunit.xsd"
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/5.7/phpunit.xsd"
bootstrap="vendor/autoload.php"
backupGlobals="false"
beStrictAboutOutputDuringTests="true"
beStrictAboutTestsThatDoNotTestAnything="true"
beStrictAboutTodoAnnotatedTests="true"
colors="true"
verbose="true">
<testsuite>
<directory suffix="Test.php">tests</directory>
<testsuite name="tests">
<directory>tests</directory>
</testsuite>

<filter>
Expand All @@ -18,7 +19,7 @@
</filter>

<logging>
<log type="coverage-html" target="build/coverage/html" title="phpDox" charset="UTF-8" highlight="true" lowUpperBound="60" highLowerBound="90"/>
<log type="coverage-html" target="build/coverage/html" lowUpperBound="60" highLowerBound="90"/>
</logging>

<php>
Expand Down
2 changes: 1 addition & 1 deletion src/Response/InfrastructureResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class InfrastructureResponse extends AbstractResponse
* <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
* <atm city="Днепр" address="">
* <device type="ATM" cityRU="Днепр" cityUA="Днiпропетровськ" cityEN="Dnipropetrovsk"
* fullAddressRu="Украина,область Днепрая,город Днепр,улица Малиновского,дом 34б"
* fullAddressRu="Украина,область Днепропетровская,город Днепр,улица Малиновского,дом 34б"
* fullAddressUa="Украiна,область Днiпропетровська,мiсто Днiпропетровськ,вулиця Миру,будинок 34б"
* fullAddressEn="Ukraine,area Dnipropetrovska,city Dnipropetrovsk,building 34b"
* placeRu="Магазин &quot;Мясо&quot;" placeUa="Магазин &quot;Мясо&quot;"
Expand Down
4 changes: 2 additions & 2 deletions src/Response/OfficesResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ class OfficesResponse extends AbstractResponse
* ```xml
* <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
* <pboffice>
* <pboffice country="Украина" state="Днепрая" city="Днепр" index="49000"
* <pboffice country="Украина" state="Днепропетровская" city="Днепр" index="49000"
* address="ул Титова 29-М" phone="8(056)373-33-54, 373-33-56"
* email="julija.tverdokhlebovapbank.com.ua" name="Южное отд., Отделение №30"/>
* <pboffice country="Украина" state="Днепрая" city="Днепр" index="49055"
* <pboffice country="Украина" state="Днепропетровская" city="Днепр" index="49055"
* address="ул Титова 9" phone="8(056)771-20-83"
* email="elena.vasikpbank.com.ua" name="ДГРУ, Отделение N41"/>
* </pboffice>
Expand Down
4 changes: 2 additions & 2 deletions tests/Response/InfrastructureResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function testSuccessfulResponse()
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<atm city="Днепр" address="">
<device type="ATM" cityRU="Днепр" cityUA="Днiпропетровськ" cityEN="Dnipropetrovsk"
fullAddressRu="Украина,область Днепрая,город Днепр,улица Малиновского,дом 34б"
fullAddressRu="Украина,область Днепропетровская,город Днепр,улица Малиновского,дом 34б"
fullAddressUa="Украiна,область Днiпропетровська,мiсто Днiпропетровськ,вулиця Миру,будинок 34б"
fullAddressEn="Ukraine,area Dnipropetrovska,city Dnipropetrovsk,building 34b"
placeRu="Магазин &quot;Мясо&quot;"
Expand All @@ -55,7 +55,7 @@ public function testSuccessfulResponse()
'cityRU' => 'Днепр',
'cityUA' => 'Днiпропетровськ',
'cityEN' => 'Dnipropetrovsk',
'fullAddressRu' => 'Украина,область Днепрая,город Днепр,улица Малиновского,дом 34б',
'fullAddressRu' => 'Украина,область Днепропетровская,город Днепр,улица Малиновского,дом 34б',
'fullAddressUa' => 'Украiна,область Днiпропетровська,мiсто Днiпропетровськ,вулиця Миру,будинок 34б',
'fullAddressEn' => 'Ukraine,area Dnipropetrovska,city Dnipropetrovsk,building 34b',
'placeRu' => 'Магазин "Мясо"',
Expand Down
8 changes: 4 additions & 4 deletions tests/Response/OfficesResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ public function testSuccessfulResponse()
$this->content = <<<XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<pboffice>
<pboffice country="Украина" state="Днепрая" city="Днепр" index="49000" address="ул Титова 29-М"
<pboffice country="Украина" state="Днепропетровская" city="Днепр" index="49000" address="ул Титова 29-М"
phone="8(056)373-33-54, 373-33-56" email="julija.tverdokhlebovapbank.com.ua" name="Южное отд., Отделение №30"/>
<pboffice country="Украина" state="Днепрая" city="Днепр" index="49055" address="ул Титова 9"
<pboffice country="Украина" state="Днепропетровская" city="Днепр" index="49055" address="ул Титова 9"
phone="8(056)771-20-83" email="elena.vasikpbank.com.ua" name="ДГРУ, Отделение N41"/>
</pboffice>
XML;
Expand All @@ -39,7 +39,7 @@ public function testSuccessfulResponse()
$this->assertEquals([
[
'country' => 'Украина',
'state' => 'Днепрая',
'state' => 'Днепропетровская',
'city' => 'Днепр',
'index' => '49000',
'address' => 'ул Титова 29-М',
Expand All @@ -49,7 +49,7 @@ public function testSuccessfulResponse()
],
[
'country' => 'Украина',
'state' => 'Днепрая',
'state' => 'Днепропетровская',
'city' => 'Днепр',
'index' => '49055',
'address' => 'ул Титова 9',
Expand Down

0 comments on commit c092bbe

Please sign in to comment.