laravel horizon

This commit is contained in:
2019-05-14 04:39:55 +00:00
parent b20bde1f56
commit 34e42d3846
464 changed files with 57914 additions and 69 deletions
+33
View File
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://some-web-service.com/CustomUI" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsdLocal0="http://www.some-web-service.com/xml/ContactInformation" targetNamespace="http://some-web-service.com/CustomUI">
<message name="Contact_Information_Input">
<part name="Contact_Id" type="xsd:string" />
</message>
<message name="Contact_Information_Output">
<part name="Response_Code" type="xsd:string" />
<part name="Response_Message" type="xsd:string" />
</message>
<portType name="Contact_Information">
<operation name="Contact_Information">
<input message="tns:Contact_Information_Input" />
<output message="tns:Contact_Information_Output" />
</operation>
</portType>
<binding name="Contact_Information" type="tns:Contact_Information">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc" />
<operation name="Contact_Information">
<soap:operation soapAction="rpc/http://some-web-service.com/CustomUI:Contact_Information" />
<input>
<soap:body namespace="http://some-web-service.com/CustomUI" use="literal" />
</input>
<output>
<soap:body namespace="http://some-web-service.com/CustomUI" use="literal" />
</output>
</operation>
</binding>
<service name="Web_Service">
<port binding="tns:Contact_Information" name="Contact_Information">
<soap:address location="https://some-web-service.com" />
</port>
</service>
</definitions>
@@ -0,0 +1,28 @@
<?php
/*
* This file is part of PHPUnit.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
use PHPUnit\Framework\TestCase;
class ExceptionInTearDownAfterClassTest extends TestCase
{
public static function tearDownAfterClass(): void
{
throw new Exception('throw Exception in tearDownAfterClass()');
}
public function testOne(): void
{
$this->assertTrue(true);
}
public function testTwo(): void
{
$this->assertTrue(true);
}
}
+24
View File
@@ -0,0 +1,24 @@
<?php declare(strict_types=1);
/*
* This file is part of PHPUnit.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
final class FinalClass
{
private $value;
public function __construct($value)
{
$this->value = $value;
}
public function value()
{
return $this->value;
}
}
@@ -0,0 +1,38 @@
<?php
/*
* This file is part of PHPUnit.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
class NumericGroupAnnotationTest extends \PHPUnit\Framework\TestCase
{
/**
* @testdox Empty test for @ticket numeric annotation values
* @ticket 3502
*
* @see https://github.com/sebastianbergmann/phpunit/issues/3502
*/
public function testTicketAnnotationSupportsNumericValue(): void
{
$this->assertTrue(true);
}
/**
* @testdox Empty test for @group numeric annotation values
* @group 3502
*
* @see https://github.com/sebastianbergmann/phpunit/issues/3502
*/
public function testGroupAnnotationSupportsNumericValue(): void
{
$this->assertTrue(true);
}
public function testDummyTestThatShouldNotRun(): void
{
$this->doesNotPerformAssertions();
}
}
@@ -0,0 +1,49 @@
<?php declare(strict_types=1);
/*
* This file is part of PHPUnit.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
class TestProxyFixture
{
public function returnString()
{
return 'result';
}
public function returnTypedString(): string
{
return 'result';
}
public function returnObject()
{
$result = new stdClass;
$result->foo = 'bar';
return $result;
}
public function returnTypedObject(): stdClass
{
$result = new stdClass;
$result->foo = 'bar';
return $result;
}
public function returnObjectOfFinalClass()
{
return new FinalClass('value');
}
public function returnTypedObjectOfFinalClass(): FinalClass
{
return new FinalClass('value');
}
}
@@ -0,0 +1,10 @@
--TEST--
PHPT runner handles unsupported --SECTION-- gracefully
--FILE--
<?php
echo "Hello world";
?>
--GET--
Gerste, Hopfen und Wasser
--EXPECT--
Hello world
@@ -0,0 +1,27 @@
--TEST--
\PHPUnit\Framework\MockObject\Generator::generateClassFromWsdl('3530.wsdl', 'Test')
--SKIPIF--
<?php declare(strict_types=1);
if (!extension_loaded('soap')) echo 'skip: SOAP extension is required';
--FILE--
<?php declare(strict_types=1);
require __DIR__ . '/../../../../vendor/autoload.php';
$generator = new \PHPUnit\Framework\MockObject\Generator;
print $generator->generateClassFromWsdl(
__DIR__ . '/../../../_files/3530.wsdl',
'Test'
);
--EXPECTF--
class Test extends \SoapClient
{
public function __construct($wsdl, array $options)
{
parent::__construct('%s/3530.wsdl', $options);
}
public function Contact_Information($Contact_Id)
{
}
}
@@ -0,0 +1,26 @@
--TEST--
PHPT runner supports XFAIL section
--FILE--
<?php
$_SERVER['argv'][1] = '--no-configuration';
$_SERVER['argv'][2] = '--verbose';
$_SERVER['argv'][3] = \realpath(__DIR__ . '/../_files/phpt-unsupported-section.phpt');
require __DIR__ . '/../bootstrap.php';
PHPUnit\TextUI\Command::main();
--EXPECTF--
PHPUnit %s by Sebastian Bergmann and contributors.
Runtime: %s
S 1 / 1 (100%)
Time: %s, Memory: %s
There was 1 skipped test:
1) %stests%e_files%ephpt-unsupported-section.phpt
PHPUnit does not support PHPT GET sections
OK, but incomplete, skipped, or risky tests!
Tests: 1, Assertions: 1, Skipped: 1.