Skip to content

Commit 420c9f7

Browse files
committed
Fixed logger tests
1 parent 99ad5e6 commit 420c9f7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/Gitonomy/Git/Tests/RepositoryTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function testEventDispatcher_Error()
9898

9999
public function testLoggerOk()
100100
{
101-
if (!class_exists('Psr\Log\LoggerInterface')) {
101+
if (!interface_exists('Psr\Log\LoggerInterface')) {
102102
$this->markTestSkipped();
103103
}
104104

@@ -115,15 +115,15 @@ public function testLoggerOk()
115115
$repo = $this->createRepositoryInstance($this->getLibDirectory());
116116
$repo->setLogger($logger);
117117

118-
$this->assertTrue($repo->isBare(), "A working command log everything");
118+
$repo->run('remote');
119119
}
120120

121121
/**
122122
* @expectedException RuntimeException
123123
*/
124124
public function testLoggerNOk()
125125
{
126-
if (!class_exists('Psr\Log\LoggerInterface')) {
126+
if (!interface_exists('Psr\Log\LoggerInterface')) {
127127
$this->markTestSkipped();
128128
}
129129

@@ -144,6 +144,6 @@ public function testLoggerNOk()
144144
$repo = $this->createRepositoryInstance($this->getLibDirectory());
145145
$repo->setLogger($logger);
146146

147-
$this->assertTrue($repo->run('not-work'), "A failing command log everything");
147+
$repo->run('not-work');
148148
}
149149
}

0 commit comments

Comments
 (0)