From f000383f94bb631285f534521822ee5cf9458697 Mon Sep 17 00:00:00 2001 From: Christoph Kappestein Date: Tue, 20 Aug 2024 23:04:01 +0200 Subject: [PATCH] remove bin test --- tests/BinTest.php | 48 ----------------------------------------------- 1 file changed, 48 deletions(-) delete mode 100644 tests/BinTest.php diff --git a/tests/BinTest.php b/tests/BinTest.php deleted file mode 100644 index f04cedf..0000000 --- a/tests/BinTest.php +++ /dev/null @@ -1,48 +0,0 @@ - - * - * Copyright (c) Christoph Kappestein - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -namespace PSX\Api\Tests; - -use PHPUnit\Framework\TestCase; - -/** - * BinTest - * - * @author Christoph Kappestein - * @license http://www.apache.org/licenses/LICENSE-2.0 - * @link https://phpsx.org - */ -class BinTest extends TestCase -{ - public function setUp(): void - { - if (strpos(shell_exec('php -v'), 'PHP') === false) { - $this->markTestIncomplete('Looks like php is not available'); - } - } - - public function testBin() - { - $actual = shell_exec('php ' . __DIR__ . '/../bin/api'); - - $this->assertMatchesRegularExpression('/api:generate/', $actual); - $this->assertMatchesRegularExpression('/api:parse/', $actual); - } -}