Skip to content
This repository was archived by the owner on Jan 8, 2024. It is now read-only.

Commit 883e0ae

Browse files
committed
Updated first test to check travis behavior
1 parent e7ce0c1 commit 883e0ae

File tree

5 files changed

+55
-6
lines changed

5 files changed

+55
-6
lines changed

bin/phpunit

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env sh
2+
3+
dir=$(d=${0%[/\\]*}; cd "$d" > /dev/null; cd "../vendor/phpunit/phpunit" && pwd)
4+
5+
# See if we are running in Cygwin by checking for cygpath program
6+
if command -v 'cygpath' >/dev/null 2>&1; then
7+
# Cygwin paths start with /cygdrive/ which will break windows PHP,
8+
# so we need to translate the dir path to windows format. However
9+
# we could be using cygwin PHP which does not require this, so we
10+
# test if the path to PHP starts with /cygdrive/ rather than /usr/bin
11+
if [[ $(which php) == /cygdrive/* ]]; then
12+
dir=$(cygpath -m "$dir");
13+
fi
14+
fi
15+
16+
dir=$(echo $dir | sed 's/ /\ /g')
17+
"${dir}/phpunit" "$@"

bin/phpunit.bat

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
@ECHO OFF
2+
setlocal DISABLEDELAYEDEXPANSION
3+
SET BIN_TARGET=%~dp0/../vendor/phpunit/phpunit/phpunit
4+
php "%BIN_TARGET%" %*

bin/simple-phpunit

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env sh
2+
3+
dir=$(d=${0%[/\\]*}; cd "$d" > /dev/null; cd "../vendor/symfony/phpunit-bridge/bin" && pwd)
4+
5+
# See if we are running in Cygwin by checking for cygpath program
6+
if command -v 'cygpath' >/dev/null 2>&1; then
7+
# Cygwin paths start with /cygdrive/ which will break windows PHP,
8+
# so we need to translate the dir path to windows format. However
9+
# we could be using cygwin PHP which does not require this, so we
10+
# test if the path to PHP starts with /cygdrive/ rather than /usr/bin
11+
if [[ $(which php) == /cygdrive/* ]]; then
12+
dir=$(cygpath -m "$dir");
13+
fi
14+
fi
15+
16+
dir=$(echo $dir | sed 's/ /\ /g')
17+
"${dir}/simple-phpunit" "$@"

bin/simple-phpunit.bat

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
@ECHO OFF
2+
setlocal DISABLEDELAYEDEXPANSION
3+
SET BIN_TARGET=%~dp0/../vendor/symfony/phpunit-bridge/bin/simple-phpunit
4+
php "%BIN_TARGET%" %*

tests/Service/PhpfastcacheTest.php

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
11
<?php
2-
/*
3-
* This file is part of the SncRedisBundle package.
2+
/**
43
*
5-
* (c) Henrik Westphal <[email protected]>
4+
* This file is part of phpFastCache.
5+
*
6+
* @license MIT License (MIT)
7+
*
8+
* For full copyright and license information, please see the docs/CREDITS.txt file.
9+
*
10+
* @author Georges.L (Geolim4) <[email protected]>
11+
* @author PastisD https://github.com/PastisD
612
*
7-
* For the full copyright and license information, please view the LICENSE
8-
* file that was distributed with this source code.
913
*/
1014
namespace Phpfastcache\PhpfastcacheBundle\Tests\Service;
1115
use PHPUnit\Framework\TestCase;
1216

1317
class PhpfastcacheTest extends TestCase
1418
{
15-
19+
public function testServiceTypeHint()
20+
{
21+
$this->assertEquals(true, true);
22+
}
1623
}

0 commit comments

Comments
 (0)