Skip to content

Commit df281b0

Browse files
committed
Fix tests
1 parent 7a03f05 commit df281b0

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

spec/Nats/ConnectionOptionsSpec.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function it_has_default_lang_value_as_php() {
3333
}
3434

3535
function it_has_default_version_value_as_null() {
36-
$this->getVersion()->shouldEqual("0.0.5");
36+
$this->getVersion()->shouldEqual("0.7.2");
3737
}
3838

3939
function it_has_default_verbose_value_as_null() {

test/ConnectionOptionsTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function testSettersAndGettersWithoutCredentials()
7474
public function testStringRepresentation()
7575
{
7676
$options = new ConnectionOptions();
77-
$this->assertEquals("{\"lang\":\"php\",\"version\":\"0.0.5\",\"verbose\":false,\"pedantic\":false}", $options->__toString());
77+
$this->assertEquals("{\"lang\":\"php\",\"version\":\"0.7.2\",\"verbose\":false,\"pedantic\":false}", $options->__toString());
7878
}
7979

8080
/**
@@ -87,6 +87,6 @@ public function testStringRepresentationWithCredentials()
8787
$options = new ConnectionOptions();
8888
$options->setUser("username");
8989
$options->setPass("password");
90-
$this->assertEquals("{\"lang\":\"php\",\"version\":\"0.0.5\",\"verbose\":false,\"pedantic\":false,\"user\":\"username\",\"pass\":\"password\"}", $options->__toString());
90+
$this->assertEquals("{\"lang\":\"php\",\"version\":\"0.7.2\",\"verbose\":false,\"pedantic\":false,\"user\":\"username\",\"pass\":\"password\"}", $options->__toString());
9191
}
9292
}

test/ConnectionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ function ($message) {
128128
public function testLargeRequest()
129129
{
130130

131-
$content = file_get_contents(dirname(__FILE__).'/test.pdf');
132-
131+
$content = substr(str_shuffle("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"), 0, 51200);
132+
133133
$contentLen = strlen($content);
134134

135135
$contentSum = md5($content);

0 commit comments

Comments
 (0)