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

View File

@@ -0,0 +1,40 @@
# Configuration for probot-stale - https://github.com/probot/stale
# Number of days of inactivity before an Issue or Pull Request becomes stale
daysUntilStale: 60
# Number of days of inactivity before a stale Issue or Pull Request is closed.
# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
daysUntilClose: 7
# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
exemptLabels:
- enhancement
# Set to true to ignore issues in a project (defaults to false)
exemptProjects: false
# Set to true to ignore issues in a milestone (defaults to false)
exemptMilestones: false
# Label to use when marking as stale
staleLabel: stale
# Comment to post when marking as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had activity within the last 60 days. It will be closed after 7 days if no further activity occurs. Thank you for your contributions.
# Comment to post when removing the stale label.
# unmarkComment: >
# Your comment here.
# Comment to post when closing a stale Issue or Pull Request.
closeComment: >
This issue has been automatically closed because it has not had activity since it was marked as stale. Thank you for your contributions.
# Limit the number of actions per hour, from 1-30. Default is 30
limitPerRun: 30
# Limit to only `issues` or `pulls`
only: issues

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>

View File

@@ -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);
}
}

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;
}
}

View File

@@ -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();
}
}

View File

@@ -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');
}
}

View File

@@ -0,0 +1,10 @@
--TEST--
PHPT runner handles unsupported --SECTION-- gracefully
--FILE--
<?php
echo "Hello world";
?>
--GET--
Gerste, Hopfen und Wasser
--EXPECT--
Hello world

View File

@@ -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)
{
}
}

View File

@@ -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.