Skip to content
Snippets Groups Projects
Select Git revision
  • upstream/2.72.6
  • debian/latest default
  • pristine-tar
  • upstream
  • debian/3.10.3-2
  • debian/3.10.3-1
  • upstream/3.10.3
  • debian/2.73.0-4
  • debian/2.73.0-3
  • debian/2.73.0-2
  • debian/2.73.0-1
  • upstream/2.73.0
  • debian/2.72.6-2
  • debian/2.72.6-1
  • debian/2.69.0-5
  • debian/2.69.0-4
  • debian/2.69.0-3
  • debian/2.69.0-2
  • debian/2.69.0-1
  • upstream/2.69.0
  • debian/2.65.0-1
  • debian/2.63.0-1
  • upstream/2.63.0
23 results

InvalidCastExceptionTest.php

Blame
  • InvalidCastExceptionTest.php 707 B
    <?php
    
    /**
     * This file is part of the Carbon package.
     *
     * (c) Brian Nesbitt <brian@nesbot.com>
     *
     * For the full copyright and license information, please view the LICENSE
     * file that was distributed with this source code.
     */
    
    namespace Tests\Carbon\Exceptions;
    
    use Carbon\Exceptions\InvalidCastException;
    use Tests\AbstractTestCase;
    
    class InvalidCastExceptionTest extends AbstractTestCase
    {
        public function testInvalidCastException(): void
        {
            $exception = new InvalidCastException($message = 'message');
    
            $this->assertSame($message, $exception->getMessage());
            $this->assertSame(0, $exception->getCode());
            $this->assertNull($exception->getPrevious());
        }
    }