Skip to content

Commit 639d572

Browse files
authored
Phpunit wrapper (#4817)
* changed build process for phar * Switched to use phpunit-wrapper * loading shim * fixed REST * Switched to use phpunit-wrapper * Fixed tests * Switched to use phpunit-wrapper * Fixed zend expressive - to not install dev deps * Switched to use phpunit-wrapper * no dev dependencies for project * Fixed laravel event tests * fixed Laravel event mocking * Removed PHP 5.4 and PHP 5.5 tests from Travis CI
1 parent e250f85 commit 639d572

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/Codeception/Lib/Driver/Beanstalk.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function getMessagesTotalCountOnQueue($queue)
4141
try {
4242
return $this->queue->statsTube($queue)['total-jobs'];
4343
} catch (ConnectionException $ex) {
44-
\PHPUnit_Framework_Assert::fail("queue [$queue] not found");
44+
\PHPUnit\Framework\Assert::fail("queue [$queue] not found");
4545
}
4646
}
4747

@@ -74,7 +74,7 @@ public function getMessagesCurrentCountOnQueue($queue)
7474
try {
7575
return $this->queue->statsTube($queue)['current-jobs-ready'];
7676
} catch (ConnectionException $e) {
77-
\PHPUnit_Framework_Assert::fail("queue [$queue] not found");
77+
\PHPUnit\Framework\Assert::fail("queue [$queue] not found");
7878
}
7979
}
8080

src/Codeception/Lib/Driver/Iron.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function openConnection($config)
2323
"host" => $config['host']
2424
]);
2525
if (!$this->queue) {
26-
\PHPUnit_Framework_Assert::fail('connection failed or timed-out.');
26+
\PHPUnit\Framework\Assert::fail('connection failed or timed-out.');
2727
}
2828
}
2929

@@ -65,7 +65,7 @@ public function getMessagesCurrentCountOnQueue($queue)
6565
try {
6666
return $this->queue->getQueue($queue)->size;
6767
} catch (\Http_Exception $ex) {
68-
\PHPUnit_Framework_Assert::fail("queue [$queue] not found");
68+
\PHPUnit\Framework\Assert::fail("queue [$queue] not found");
6969
}
7070
}
7171

@@ -81,7 +81,7 @@ public function getMessagesTotalCountOnQueue($queue)
8181
try {
8282
return $this->queue->getQueue($queue)->total_messages;
8383
} catch (\Http_Exception $e) {
84-
\PHPUnit_Framework_Assert::fail("queue [$queue] not found");
84+
\PHPUnit\Framework\Assert::fail("queue [$queue] not found");
8585
}
8686
}
8787

@@ -90,7 +90,7 @@ public function clearQueue($queue)
9090
try {
9191
$this->queue->clearQueue($queue);
9292
} catch (\Http_Exception $ex) {
93-
\PHPUnit_Framework_Assert::fail("queue [$queue] not found");
93+
\PHPUnit\Framework\Assert::fail("queue [$queue] not found");
9494
}
9595
}
9696

tests/unit/Codeception/Module/BeanstalkdTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use Codeception\Util\Stub;
44
use Pheanstalk\Exception\ConnectionException;
55

6-
class BeanstalkdTest extends \PHPUnit_Framework_TestCase
6+
class BeanstalkdTest extends \PHPUnit\Framework\TestCase
77
{
88
protected $config = array(
99
'type' => 'beanstalkq',

0 commit comments

Comments
 (0)