Skip to content

Commit e0d7038

Browse files
author
Marc Aschmann
committed
Add badges, add bootstrap
1 parent ebcf09d commit e0d7038

File tree

5 files changed

+85
-0
lines changed

5 files changed

+85
-0
lines changed

.travis.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
language: php
2+
sudo: false
3+
4+
php:
5+
- 5.5
6+
- 5.6
7+
- 7
8+
9+
env:
10+
11+
before_script:
12+
- composer install

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Core components
2+
=========
3+
[![Build Status](https://travis-ci.org/phpflo/phpflo-core.svg?branch=master)](https://travis-ci.org/phpflo/phpflo-core)
4+
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/phpflo/phpflo-core/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/phpflo/phpflo-core/?branch=master)
5+
[![Code Coverage](https://scrutinizer-ci.com/g/phpflo/phpflo-core/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/phpflo/phpflo-core/?branch=master)
6+
[![License](http://img.shields.io/:license-mit-blue.svg)](http://doge.mit-license.org)

phpunit.xml.dist

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.8/phpunit.xsd"
4+
backupGlobals="false"
5+
backupStaticAttributes="false"
6+
colors="true"
7+
convertErrorsToExceptions="true"
8+
convertNoticesToExceptions="true"
9+
convertWarningsToExceptions="true"
10+
processIsolation="false"
11+
stopOnFailure="false"
12+
syntaxCheck="false"
13+
bootstrap="tests/bootstrap.php"
14+
>
15+
<testsuites>
16+
<testsuite name="PhpFlo Test Suite">
17+
<directory>tests</directory>
18+
</testsuite>
19+
</testsuites>
20+
</phpunit>

tests/PhpFlo/Component/QueueTest.php

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?php
2+
3+
namespace Tests\PhpFlo\Component;
4+
5+
use PhpFlo\Network;
6+
7+
class QueueTest extends \PHPUnit_Framework_TestCase
8+
{
9+
public function testNoMessageIsForwardedWhileQueueSizeIsNotReached()
10+
{
11+
$this->markTestIncomplete();
12+
}
13+
14+
public function testAllMessagesAreForwardedWhenQueueSizeIsReached()
15+
{
16+
$this->markTestIncomplete();
17+
}
18+
19+
public function testQueueResize()
20+
{
21+
$this->markTestIncomplete();
22+
}
23+
24+
public function testErrorIsSendWhenIncorrectResizeMessageIsReceived()
25+
{
26+
$this->markTestIncomplete();
27+
}
28+
29+
public function testMessagesAreForwardeWhenQueueIsResizedBelowCurrentMessageCount()
30+
{
31+
$this->markTestIncomplete();
32+
}
33+
34+
public function testMessagesAreForwaredWhenIncomingStreamIsDetached()
35+
{
36+
$this->markTestIncomplete();
37+
}
38+
}

tests/bootstrap.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
$autoloadFile = __DIR__.'/../vendor/autoload.php';
4+
5+
if (!is_file($autoloadFile)) {
6+
throw new RuntimeException('Could not find autoloader. Did you run "composer install --dev"?');
7+
}
8+
9+
$loader = require_once $autoloadFile;

0 commit comments

Comments
 (0)